Comments on: ESP8266 DHT11/DHT22 Temperature and Humidity Web Server with Arduino IDE https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 01 Feb 2026 10:41:08 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157678 Sun, 01 Feb 2026 10:41:08 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157678 In reply to Józef.

Hi.
Great.
I’m glad everything is working as expected now.
That behavior is probably related to the sensor itself. But, you can get another one to rule that out, or get a different temperature sensor.
Regards,
Sara

]]>
By: Józef https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157463 Sat, 31 Jan 2026 13:12:43 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157463 Witaj Saro.
Wszystko działa poprawnie no z małym znakiem zapytania wilgotność jest 40.30 % wydaje mi się że jest to za mało no ale może chińskie DHT22 takie już jest na Arduino też były takie wskazania , czujnik reaguje ponieważ jak na niego chuchnę wynik rośnie do 96.40 % . Ale co było przyczyną mojego niepowodzenia otóż zła biblioteka DHT sensor library , odinstalowałem ją i zainstalowałem od nowa DHT sensor library by Adafruit Version 1.3.4 i od razu pomogło teraz mam wskazanie:
Temperature 20.70 °C

Humidity 41.30 %

Dziękuję i pozdrawiam serdecznie
PS. Dziękuję za wszystkie projekty które publikujecie są nieocenione.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157450 Sat, 31 Jan 2026 11:16:47 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157450 In reply to Józef.

Tell me the Web Server exact libraries you’re using, including the versions.
Also, tell me the version of your ESP8266 board installation (Tools > Boards > Boards Manager > ESP8266 (check the version installed))

Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157448 Sat, 31 Jan 2026 11:15:11 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157448 In reply to Craig.

Great!

]]>
By: Józef https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157439 Sat, 31 Jan 2026 10:24:27 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157439 Witaj Sara.
Postęp jest to na pewno. Sprawdziłem dokładnie Twoje propozycje i tak :
1 czujniki sprawdzone na Arduino-przykładowy wynik:
11:00:11.401 -> Type, status, Humidity (%), Temperature (C) Time (us)
11:00:11.401 -> DHT22, OK, 36.9, 21.7, 4712
11:00:13.416 -> DHT22, OK, 36.4, 21.7, 4616
11:00:15.426 -> DHT22, OK, 36.2, 21.7, 4568
11:00:17.456 -> DHT22, OK, 36.0, 21.8, 4568
2 Wybór właściwego czujnika w kodzie jest:
// Uncomment the type of sensor in use:
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302)- wybrany DHT22
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
3 Połączenia sprawdziłem wielokrotnie i są na 100% poprawne.
Efekt końcowy taki jaki był:
Temperature 0.00 °C

Humidity 6553.50 %
Tak więc moja prośba pozostaje w mocy.
Pozdrawiam serdecznie.

]]>
By: Craig https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157334 Fri, 30 Jan 2026 23:24:33 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157334 In reply to Sara Santos.

My mistake, I just reloaded the old code. With the updated code above everything works as it should. Thank you for the great example.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157324 Fri, 30 Jan 2026 22:13:41 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157324 In reply to Józef.

Hi.
It seems the web server is already working. So, your initial problem is fixed.
Now, you have an issue with your DHT sensor. Double-check the wiring, and that you’re selecting the right sensor in the code: either DHT11 or DHT22.

Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157323 Fri, 30 Jan 2026 22:12:03 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157323 In reply to Craig.

Hi.
It is working for me now.
Are you seeing the most recent code?
It should have this line:
request->send_P(200, “text/html”, index_html, processor);
Regards,
Sara

]]>
By: Craig https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157298 Fri, 30 Jan 2026 20:04:01 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157298 In reply to Sara Santos.

Unfortunately, I still get the crash-reboot every time I attempt to access the web page.

]]>
By: Józef https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/#comment-1157294 Fri, 30 Jan 2026 20:00:26 +0000 http://randomnerdtutorials.com/?p=21652#comment-1157294 Witaj Saro. Wgrałem Twój zmieniony kod i po przesłaniu kodu otwieram monitor szeregowi i otrzymuję :20:37:56.171 -> 192.168.222.104
20:38:00.560 -> Failed to read from DHT sensor!
20:38:00.560 -> 6553.50
20:38:10.527 -> Failed to read from DHT sensor!
następnie w przeglądarce wpisuję adres IP ESP8266 i pięknie otwiera się strona ale na niej :
Temperature 0.00 °C
Humidity 6553.50 %

Więc podsumowując są znaczące zmiany ale nie jest to oczekiwany efekt. Proszę więc o dalszą pomoc.
Pozdrawiam serdecznie.

]]>