cancel
Showing results for 
Search instead for 
Did you mean: 

HTS221 T0_OUT & T1_OUT = 0

MTrav.19
Associate

Currently having some issues reading the temperature correctly from the HTS221 sensor.

The Coefficients read as follows.

H0_T0_OUT = 0x5246

H0_rH_x2 = 0x57

H1_T0_OUT = 0x0000

H1_rH_x2 = 0x95

T0_OUT = 0x0000

T0_degC_x8 = 0x27

T1/T0 MSB = 0x4B

T1_OUT = 0x0000

T1_degC_x8 = 0x20

Outputs:

H_OUT = 0x1469

T_OUT = 0x09ED

The humidity seems to be working fine but the temperature does not appear to be correct. Any help would be much appreciated.

Thanks,

Matt

1 REPLY 1
Eleon BORLINI
ST Employee

Hi Matt, I'm wondering if you are correctly reading the values. Did you calculate the rH through the formula (p.2 TN1218)? I'm getting rH 20% with your values...

0690X000009k7s3QAA.png

Are you correctly reading the WHO_AM_I (0Fh) register? Btw, if the T0_OUT and T1_OUT values are effectively 0h, the sensors are probably wrong calibrated... can you check the same registers on other HTS221? Regards