2021-10-27 12:10 AM
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.
Solved! Go to Solution.
2021-10-28 03:42 AM
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
2021-10-28 03:42 AM
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