I’m at a loss here. I have 4 DHT’s connected to an ESP32 that use to work for ~8 months.
At some point about a month ago, I started fighting with the error below. After a power up, it will work for several hours and then one or more and then eventual all the attached sensors end up in this state. A full 5 min power cycle is required to bring them back on-line.
Tried:
All new sensors
New ESP32 Board
New 2.5a Power supply and wire.
New higher tolerances pull up resistors, in different values (2K to 4.7)
Error
[17:52:56][W][dht:169]: Requesting data from DHT failed!
[17:52:56][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).
Sketch
esphome:
name: "erv-monitor-sensors"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "XXXXXXX"
ota:
password: "XXXXX"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
power_save_mode: none
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "erv-monitor-sensors"
password: "XXXXX"
captive_portal:
sensor:
- platform: dht
model: DHT22
pin: 19
temperature:
name: "Stale Air Port Temperature"
humidity:
name: "Stale Air Port Humidity"
update_interval: 10s
- platform: dht
model: DHT22
pin: 23
temperature:
name: "Exhaust Air Port Temperature"
humidity:
name: "Exhaust Air Port Humidity"
update_interval: 15s
- platform: dht
model: DHT22
pin: 5
temperature:
filters:
- offset: 0
name: "Outside Air Port Temperature"
humidity:
filters:
- offset: 0
name: "Outside Air Port Humidity"
update_interval: 20s
- platform: dht
model: DHT22
pin: 18
temperature:
name: "Fresh Air Port Temperature"
humidity:
name: "Fresh Air Port Humidity"
update_interval: 25s