0

Help please I'm trying to get the sensor values from DHT11 Humidity & Temperature Sensor but the Esp8266 is connecting to internet but is not reading the value from the sensor.

I'm using Blynk to display the sensor value

this is what appears in my monitors Serial

21:41:24.811 -> �����������������������������������������������������������������������������������������������[24759] Connected to WiFi
21:41:26.726 -> [24759] IP: 192.168.1.9
21:41:26.760 -> [24759] 
21:41:26.760 -> ___ __ __
21:41:26.796 -> / _ )/ /_ _____ / /__
21:41:26.796 -> / _ / / // / _ \/ '_/
21:41:26.832 -> /____/_/\_, /_//_/_/\_\
21:41:26.865 -> /___/ v0.5.4 on NodeMCU
21:41:26.903 -> 
21:41:26.903 -> [24837] Connecting to blynk-cloud.com:80
21:41:30.876 -> [28951] Ready (ping: 23ms).
21:41:34.230 -> Failed to read from DHT sensor!
21:41:34.940 -> Failed to read from DHT sensor!
21:42:56.217 -> Failed to read from DHT sensor!

my code

my current circuit diagram

Luis Avila
  • 37
  • 1
  • 7

1 Answers1

0
  • Double check the connection of sensor and its variable define in code, it has to be the same, most projects with esp use D4 for dht input.
  • Try to put 4k7 to 10k resistor between +VCC and dht's data out pin.
KiLLA
  • 1