I recoded this sketch and I posted on GitHub (1 year ago, and I updated it today). It runs good from 1 year with no issues.
I don't know why it's still not merged in master branch. I forgot to do some action??
Can anyone help me? please.
Meanwhile you can download and use it; this is its link:
Best posts made by cnerone
RE: 💬 Air Humidity Sensor - DHT
RE: DHT22 and DHT lib
I wrote an updated version that uses the standard dht adafruit library.
I posted on github site (https://github.com/cnerone/MySensorsArduinoExamples/commit/922cdaaff772db3a59aef8d784d4ef4e43c9a50a) but its pubblication it's still in progress...
I run it for one year and it runs very good with no issues...