Hi,
In order to read values from TH02 sensor(Address: 0x40) I first need to give a command i.e. write 0x01(for temperature) and 0x11(for RH) resp into internal CONFIG register(having address 0x03) and then read the values.
I am unable to understand where to write my commands in the nrf_drv_twi_tx() function after which I can read using nrf_drv_twi_rx() function.
Please let me know if anyone can help with this. Here is the datasheet for TH02 sensor.