Comments on: ESP32 with DHT11/DHT22 Temperature and Humidity Sensor using Arduino IDE https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 24 Jul 2025 20:47:04 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: ogunleye damola https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-1074353 Thu, 24 Jul 2025 20:47:04 +0000 https://randomnerdtutorials.com/?p=84261#comment-1074353 the only solution i have is to have am esp32 and a arduino uno board.thanks

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-1021814 Tue, 01 Apr 2025 09:41:12 +0000 https://randomnerdtutorials.com/?p=84261#comment-1021814 In reply to Jay.

Yes.
You’re right.
Maybe you have defective sensors??
It’s either that or bad wiring.
Regards,
Sara

]]>
By: Jay https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-1020917 Sat, 29 Mar 2025 21:16:02 +0000 https://randomnerdtutorials.com/?p=84261#comment-1020917 In reply to Sara Santos.

Hi Sara
Sensor is labelled AM2302 which should correspond to a DHT22 I believe
Jay

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-1020427 Fri, 28 Mar 2025 10:30:19 +0000 https://randomnerdtutorials.com/?p=84261#comment-1020427 In reply to Jay.

Hi.
Do you really have a DHT22?
Isn’t it a DHT11?
Regards,
Sara

]]>
By: Jay https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-1020255 Thu, 27 Mar 2025 20:48:29 +0000 https://randomnerdtutorials.com/?p=84261#comment-1020255 Hi Sara
Pulling my hair out here
Trying to get a Temp Humidity sensor working for a project t MIT
I wired it all up per the website
I keep getting
“Failed to read DHT sensor”
I tried 3 different DHT22 sensors
I tried changing V to 5 volts supply to the DHT22
I tried changing GPIO pin from 4 to 6
I tried removing the 10k resistor b/c people say its built in to the DHT22
I tried changing baud rate from115200 to 9600
I tried using previous versions of DHT library
Nothing worked !!!!
Would love to hear how to get this thing working
Best
Jay

]]>
By: Salvatore https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-1003683 Wed, 29 Jan 2025 21:49:25 +0000 https://randomnerdtutorials.com/?p=84261#comment-1003683 Great tutorial but if I include the MySql library for ESP32 the DHT22 sensor does not work..
After reading it always returns NAN
After several attempts I do not find the solution.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-995948 Mon, 30 Dec 2024 22:36:48 +0000 https://randomnerdtutorials.com/?p=84261#comment-995948 In reply to Dharmendra Gupta.

Hi.
Please double-check the wiring and wait at least two seconds between each reading.
Regards,
Sara

]]>
By: Dharmendra Gupta https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-995832 Mon, 30 Dec 2024 11:20:44 +0000 https://randomnerdtutorials.com/?p=84261#comment-995832 In reply to Nathanael.

Same with mine

]]>
By: Nathanael https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-929941 Mon, 24 Jun 2024 16:00:58 +0000 https://randomnerdtutorials.com/?p=84261#comment-929941 How do I tell if my dht11 is fried or not? I’m trying to get it to work but it only says “Failed to read from DHT sensor”.

]]>
By: Peter Drinnan https://randomnerdtutorials.com/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide/#comment-917698 Fri, 24 May 2024 03:08:19 +0000 https://randomnerdtutorials.com/?p=84261#comment-917698 I found the length of the wire made a big difference. I was using a 22 awg wire that was 10m long and I was getting nan errors on 2/3rd of read attempts. When I shortened the wire to 5m the errors went away and I was getting 100% success on readings.

]]>