olewolf / DHT_nonblocking

Non-blocking Arduino library for the DHT11, DHT21, and DHT22 sensors
GNU General Public License v3.0
37 stars 28 forks source link

No negative sign when temperature is below 0°C #12

Open o-Dan-o opened 1 year ago

o-Dan-o commented 1 year ago

Hi,

On the DHT11, I found that I always get a positive value for temperature even if it's below 0°C.

Here's a screenshot of the output from the example file DHT_nonblocking.ino (last 6 lines) compared to output from the example file DHT_Unified_Sensor.ino by Adafruit (first 3 lines). Sensor is in the same location, same temperature.

Temperature is actually -6.3°C, but DHT_nonblocking reports it as +6.0°C.

Hope this is helpful!

-Dan

ScreenShot