NorthernWidget / T9602_Library

Arduino library interface for the Telaire T9602 humidity and temperature sensor
GNU General Public License v3.0
5 stars 2 forks source link

Add status bit testing #1

Open awickert opened 4 years ago

awickert commented 4 years ago

Line 3 of the cpp file: //FIX! Add status bit testing!

waelnaseeb commented 3 years ago

Thank you so much guys for your work. I've just come across your library while working on a project that includes T9602 and Controllino. The library happens to work very well although I'm still working out the stuck temperature readings issue.

Cheers

awickert commented 3 years ago

Hi @waelnaseeb. I haven't encountered "the stuck temperature readings". Could you open a new issue with the required information to reproduce the problem?

Thanks!

awickert commented 3 years ago

Following up on the issue unrelated to the status bit: #2 just closed because it seems to be a hardware error.

maciejs1982 commented 2 years ago

The issue is that when temperature conversion is performed, it is done on bytes that don't exist. Change line: Temp = (float)((unsigned((data[2] * 64)) + unsigned((data[3] >> 2 ))) / 16384.0) * 165.0 - 40.0; //Convert Temp to: Temp = (float)((unsigned((data[0] * 64)) + unsigned((data[1] >> 2 ))) / 16384.0) * 165.0 - 40.0; //Convert Temp