adafruit / DHT-sensor-library

Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors
https://learn.adafruit.com/dht
MIT License
1.97k stars 1.43k forks source link

Support for the new DHT12 #83

Closed nielstron closed 5 years ago

nielstron commented 7 years ago

The current version of the DHT sensor Library does not support the new DHT1 version 2.0.0, shortly the DHT12. There exists a library at Github by WEMOS. It would be great if it could be integrated into the existing DHT sensor library.

geofbaum commented 7 years ago

@nielstron Is this an issue with both the Unified code as well as the older/legacy code or is it just one of them? I don't know if you've tried it with both versions of the library or not. From looking at the WEMOS code it is using the get() command slightly differently then in the Adafruit Unified sensors library but at the same time, the biggest difference I see is that WEMOS code doesn't seem to need to pass the pin that it's attached to which even with the older WEMOS shields you still had to do. You should do a pull request to add support for the new DHT sensors.

kreintjes commented 7 years ago

Using the DHT shield v2.0.0 would also solve my blinking issue (https://github.com/adafruit/DHT-sensor-library/issues/85), since it doesn't use pin D4 anymore.

PaintYourDragon commented 5 years ago

Appears to be supported in current release.