I'm making a remote greenhouse and garden temperature and humidity monitor and have encountered a possible issue with the library used in the DHT22 command.
I'm using the AM2302 (basically the same as DHT22 but with internal pullup on the data line) and with a minimal test program this is returning NAN (not a number) for all three parameters in a manner which appears to be termperature related. My immediate thought was a faulty sensor, but I have tried another with exactly the same result. I have also tried this on different ESP32 pins and with an external pullup with exactly the same result.
Googling around, it does appear that there are known timing issues causing bad DHT22 reads with some Arduino libraries (which I think is what this driver is based on), although no posting I've seen mentions a termperature effect.
Does anyone have DHT22 / AM2302 devices working correctly at all temperatures?
(If so, I'm probably looking at a batch problem with the devices I'm using.)
DHT.SETUP 13,22
pause 2000
do
wlog DHT.TEMP
pause 2200
loop