Incorrect digitization of DHT21

Hello. I am using DHT21 in Home Assistant using ESP Home. Immediately after the firmware, the data is calculated correctly, but after the ESP8266 reboot, the data is distorted! But the signal from the sensor does not change. And it transmits correctly. It looks like the gate is incorrectly configured in ESP8266! How to fix it?

Try specifying the model in your YAML. It would be either DHT22 or DHT22_TYPE2 I believe:

  • model (Optional, int): Manually specify the DHT model, can be one of AUTO_DETECT, DHT11, DHT22, DHT22_TYPE2, AM2302, RHT03, SI7021 and helps with some connection issues. Defaults to AUTO_DETECT. Auto detection doesn’t work for the SI7021 chip.

Either that, or you are experiencing timing issues which appear to have been introduced in 2022.12 Ignore that - only affects ESP32

Thank you very much!!! it worked. I pointed out the DHT22_TYPE2 model and everything became ok!!