ESP8266 can't read Temperature & Humidity from DHT21/AM2301
Posted: Fri Sep 04, 2015 10:22 pm
I followed the instruction: https://github.com/adafruit/DHT-sensor-library and upload DHTtest.ino to Esp8266
Connect pin 1 (on the left) of the sensor to +5V
Connect pin 2 of the sensor to whatever your DHTPIN is
Connect pin 4 (on the right) of the sensor to GROUND
Connect a 1K resistor from pin 2 (data) to pin 1 (power) of the sensor
but after done uploading, Serial Monitor print: "Failed to read from DHT sensor!"
I don't know what reason and how to fix
Thanks!
Connect pin 1 (on the left) of the sensor to +5V
Connect pin 2 of the sensor to whatever your DHTPIN is
Connect pin 4 (on the right) of the sensor to GROUND
Connect a 1K resistor from pin 2 (data) to pin 1 (power) of the sensor
but after done uploading, Serial Monitor print: "Failed to read from DHT sensor!"
I don't know what reason and how to fix
Thanks!