RobTillaart / DHTNew

Arduino library for DHT11 and DHT22 with automatic sensor recognition
MIT License
99 stars 15 forks source link

Shows wrong type #94

Closed MickyRoth closed 8 months ago

MickyRoth commented 9 months ago

I have a DHT11 (the blue sensor), but it shows type "22" in the dhtnew_test sketch. Temp and Humid readings are OK, though. Is this a known problem?

RobTillaart commented 9 months ago

Thanks for the issue, Not a known problem, the library has been around for a long time and I do not recall a similar issue.

Do you override the type to get the output?

(Updated, the dht11 does one decimal too)

RobTillaart commented 9 months ago

The dht11 and dht22 have slightly different math to get from raw bits to temp/humidity. That's why I asked for if you set the type.

RobTillaart commented 8 months ago

Assuming there are no further questions I close this issue. Feel free to reopen if needed.