cancel
Showing results for 
Search instead for 
Did you mean: 

Are the values ​​monitored by the HTS221 temperature and humidity sensor accurate?

WKwon.1
Associate

When I measured the temperature and himidity using Arduino board and the HTS221 sensor, the temperature was 16 degrees and the relative humidity was about 55%. However, when I measured the thermometer, it measured about 23 degrees, and I want to know why there is such a difference.

Do I need to calibrate the HTS221 sensor before driving it?

The HTS221 library in Arduino was used.

If there is a reason, please explain.

1 ACCEPTED SOLUTION

Accepted Solutions
TBomb.1
Senior II

Hi @WKwon.1​ , it might be a good practice to run an "heater cycle" (bit1 in CTRL_REG2) before starting the measures.

As described in the datasheet:

The Heater bit is used to control an internal heating element, that can effectively be used to speed up the sensor recovery time in case of condensation. The heater can be operated only by an external controller, which means that it has to be switched on/off directly by FW. Humidity and temperature output should not be read during the heating cycle; valid data can be read out once the heater has been turned off, after the completion of the heating cycle.

https://www.st.com/resource/en/datasheet/hts221.pdf

\Tom

View solution in original post

1 REPLY 1
TBomb.1
Senior II

Hi @WKwon.1​ , it might be a good practice to run an "heater cycle" (bit1 in CTRL_REG2) before starting the measures.

As described in the datasheet:

The Heater bit is used to control an internal heating element, that can effectively be used to speed up the sensor recovery time in case of condensation. The heater can be operated only by an external controller, which means that it has to be switched on/off directly by FW. Humidity and temperature output should not be read during the heating cycle; valid data can be read out once the heater has been turned off, after the completion of the heating cycle.

https://www.st.com/resource/en/datasheet/hts221.pdf

\Tom