adafruit / Adafruit_Si7021

Arduino library for Adafruit Si7021
33 stars 28 forks source link

Humidity value is getting reported above 100% #10

Closed bkrajendra closed 4 years ago

bkrajendra commented 5 years ago

Im just using latest library as it is with ESP8266. What i observed is humidity is crossing 100 value and is being reported as 101 and above.

Its currently raining outside but I guess RH value is never beyond 100. Please help.

bkrajendra commented 5 years ago

As per the datasheet, RH may be reported more than 100 if its closer to 100 due to accuracy curve of sensor.

image

This need to be handled in software by rounding/truncating value to 100. This can also be done inside library. Or else will do it in my code.

ladyada commented 5 years ago

thanks - please submit a PR so that RH returned does not go above 100%

caternuson commented 5 years ago

Please try the 1.2.1 version of the library when it becomes available.

caternuson commented 4 years ago

Closing due to lack of response.