After a bit of hassle I got the DHT to sort of work with the recommended “PietteTech_DHT/PietteTech_DHT.h” library. It was hanging and breathing green on the acquire and wait function, so I deleted it and the example switch case error reporting statements and I could get the program to loop and take readings.
However, now I’m only getting -7.0 as a return value for the other polling functions for temp/hum/dew point, etc.
That return value looks similar to what another user reported here:
What’s it mean?
Things I’ve tried:
Switching pins (D0,D2). Can’t use D3 - 6.
Switching the DHTTYPE from DHT22 to AM2302.
Creating a new sketch from the library example with the library automatically included to rule out library inclusion issues.
I have the SMAKN DHT22 that comes with a built in resistor (or two), and some presoldered pins. It was stated to be 3 - 5v capable.
Things I haven’t tried:
Powering with higher voltage.
Any other recommendations? Thanks in advance!