Page 1 of 1

DHT library

Posted: Wed Mar 24, 2021 8:36 pm
by ScriptBasic
I have been unable to get my DHT11 or DHT22 to work with the Micropython DHT library. I get a ETIMEOUT every time I tried to do a measure() function call.

Is this broken in the latest release?

Re: DHT library

Posted: Tue Mar 30, 2021 10:44 pm
by amarotica
As far as I know, the DHT sensors communicate via bit-banging, so I don't think it's something that would break with a new release.

One thing you could check (to see if the sensor is sending a response) is to send the 18ms start pulse then read-in the raw data and visually see if there is a response.

https://www.electronicwings.com/sensors-modules/dht11