2023-08-01 08:59 AM
I am using the hts221 with i2c protocol for doing my calculation based on this reference:Application note for calculating relative humidity.
Observations:
I am wondering why this strange behavior occurs and is there something, I am doing wrong over here?
Al l am doing is reading the respective registers and assigning the values like this(eg: here H_OUT):
2023-08-24 07:59 AM
Hello @Anare.1 ,
The HTS221 humidity sensor measures relative humidity and temperature and stores the values as two's complement integers (16-bit words) which can be read over the I2C.
I recommend you to refer to the :
* Figure 3. Reference code for HTS221_Get_Humidity API
** Figure 5. Reference code for HTS221_Get_Temperature API
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-08-24 11:58 PM
Hi @Anare.1 ,
the answer from Foued is right, check those figure out =)
Anyway, are you sure you are applying the formula correctly?
you can also refer to the drivers to get help =)
If this answers your question, please, mark this as "best answer", by clicking on the "accept as solution" to help the other users of the community
Niccolò