Page 1 of 1

DHT20

Posted: 06 Nov 2023, 14:09
by Lonzo
I want to connect a DHT20 (I2C Address: 0x38). Has anyone experiences to do that?

Re: DHT20

Posted: 06 Nov 2023, 14:46
by bidrohini
ESPeasy supports DHT11 and DHT22. But there is no mention of DHT20 here:
https://www.letscontrolit.com/wiki/inde ... HT11_DHT22

Re: DHT20

Posted: 06 Nov 2023, 14:47
by Ath
This sensor, though similar to a DHT12, isn't yet supported by ESPEasy (AFAICS). Might be best to add it to the DHT12 plugin, as that is already using I2C, but haven't looked at the details yet. Will have a look later today, on what's possible.

Re: DHT20

Posted: 06 Nov 2023, 14:47
by TD-er
Hmm we do have support for DHT12 (I2C), which is P034
And the DHT11/12/22 which use their own bit-banging protocol.

I don't know the DHT20, but perhaps you can test using the DHT12(I2C) plugin to see if it is working with this sensor also?

Let's hope they now make decent sensors, as the DHT11 was absolute rubbish and the DHT22 was better but still rubbish.

Re: DHT20

Posted: 06 Nov 2023, 22:41
by Ath
Did some investigation, but the DHT20 has quite a different protocol from the DHT12, so it's not a simple, drop-in, replacement.

Still the best solution seems to be to add this as a selectable option to P034, as the measuring capabilities are quite similar, same kind of accuracy for both the temperature and the humidity.
The documentation mentions it being an improved replacement for the DHT11, but using an I2C connection. :roll:

Re: DHT20

Posted: 06 Nov 2023, 22:52
by TD-er
It really isn't that hard to be an improvement over a DHT11.
Literally anything is an improvement over a DHT11.