Hi James! How are you powering the DHT22 with 5V or 3.3V? What’s the error message that you see in the Arduino IDE Serial monitor?
The set up is exactly like you show in your course. I’m basically getting ‘Nan’ though your scratch prints ‘failed’. I used a different DHT library without failed readings.
But can you double-check and let me know. How are you powering the DHT22 with 5V or 3.3V?
Thanks for your patience,
Hum… Can you try to power it with 5V (with the Vin pin)? How are you powering your ESP32 board with a USB port from your computer?
I have such problem too. My ESP32 and AM2302 don’t work with DHT.h .The sensor work well with Arduino board.
I try the ESP32 and AM2302 with libraries DHTesp.h and Ticker.h (exaples from github.com). Examle work well. I think, that it is need to correct time intervals in library DHT.h.
I am sorry, my English is imperfect.
Hello Ceslavas. Can you try to power it with 5V (with the Vin pin)?
How are you powering your ESP32 board with a USB port from your computer?
Yes, I do. I try power sensor with 3,3 in first, then from 5V. The answer was “Nan” both times. I am powering ESP32 with USB port from computer.
The examples with libraries “DHTesp.h” and “Tickers.h” I try with 5V only .
Did those examples work with your ESP “DHTesp.h”?
Can you try to power your ESP32 with an external power source or with like a phone charger to see if it’s a power problem.
I don’t understand what happened. ESP32 and AM2302 begin work with DHT.h when I trying it again today. I wantetd to load a program at first so I powered ESP32 with USB port from computer. Program with DHT.h begin work well ! I did not renew the schemes. Many times I loaded the programs with DHT.h and DHTesp.h a few days ago. ESP32 and AM2302 don’t worked with DHT.h. I wonder how it will be tomorrow?
Forgive me for unnecessary disturbance.