arduino-libraries/Arduino_HTS221

HTS221 displays no values

GuntasSinghProg5 opened this issue · 1 comments

Hi guys
So I removed the while (!Serial); line from the ReadSensors example in the HTS221 on the 33 BLE Sense, and on the S. Monitor, it shows Temperature - 0% and Humidity - 0%

Since this was easy to repro, i tried to go into the layers and found out the device responds for registers 0x30 & 0x31 as zero which offsets the calculations and humidity in my case reads zero :( , there exists a workaround which include adding a delay for 100ms before we start reading in the readconfiguration method which fixes humidity problem..
I assume the HTS221 itself has an issue where it needs some settling time before it can read back correct values from the register even when i set boot bit on control register 2 to zero... other people can confirm..