DHT22 after power failure

I’m using ESPHome on a Wemos D1 Mini with a DHT22 to monitor the temperature in my greenhouse. Any time there is a power failure or if I update the device, the temperature and RH readings fail. I can cycle power to just the sensor and everything starts working again. For a long time I used a DHT11, and it never had this issue. When I changed to the DHT22, I had to set the model to AM2302 in order to get a reading. Is there some setting I need to change so that the sensor will come back online after a power failure?

Have you set the model to DHT22?

sensor:
  - platform: dht
    model: DHT22
    pin: D2
    temperature:
      name: temperature
      id: temp_from_inside
    humidity:
      name: humidity
      id: humidity_from_inside
    update_interval: 15s
1 Like

I tried setting it to DHT22, but it would not work. I ended up setting the model to AM2302 in order to get it to function.

I’d post my config, but it’s the exact same as Fonske. Been working 4y+ I’m running it on a featheresp32.

I’ve also added a bluetooth xiaomi temperature sensor xiaomi_lywsdcgq that sends it to that same esp which forwards it to HA over wifi. Added advantage is it has an LCD screen, and it’s pretty cheap