I2C issues with ATH10, HAL_I2C_Master_Transmit giving error but HAL_I2C_Master_Recieve doesn't
I have a NUCLEO-F103RB and I am trying to communicate with my AHT10 sensor. I understand the basics of I2C but i'm a newbie to stm32.
For some reason when i do HAL_I2C_MASTER_TRANSMIT it seems to return a failure but HAL_I2C_MASTER_RECIEVE doesn't return any error at all.
The null_a_char function basically just puts '/0' into the array so i can reuse it next time.
My code is below.
while (1)
{
null_a_char(buf);
buf[0]= 172; //0xAC
ret = HAL_I2C_Master_Transmit(&hi2c1, 112, buf, 8, 10000); //Returns HAL_ERROR
null_a_char(buf); // Just puts /0 in the buff
buf[0]= 172; //0xAC
ret = HAL_I2C_Master_Receive(&hi2c1, 112, buf, 2, 1000); // Returns HAL_OK
null_a_char(buf);
ret = HAL_I2C_Master_Receive(&hi2c1, 113, buf, 6, 1000); // Returns HAL_OK
// this returns buff[0]=24, buff[1]=220, buff[2]=105, buff[3]=0, buff[4]=0
// buff[5]=0, buff[6]=0
}From my research, it seems the AHT10 sensor is on address 0x38. I have attached from what I think is the datasheet for the AHT10 as well as a couple pictures of my setup as well as my .ioc file.
I'm a hobbiest and don't have anyone to turn to, please help.

My AHT10 sensor with the 2 pull up resistors (both connected to positive rail

The 2 wires connecting back to my nucleo board.

Image of my .ioc file
I have attached the AHT10 datasheet (i could be wrong but this is what i found).

