Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3745

Troubleshooting • Re: DHT 11, not working how I need it to work

$
0
0
With the latest Raspberry PI OS releases you don't need anymore to install specific Python libraries, as the OS brings specific modules to manage DHT11 (and DHT22) sensors. You just need to add the

Code:

dtoverlay=dht11,gpiopin=17
(if the sensor is wired to GPIO17) in your config.txt and you should be able to read it from the in_temp_input and in_humidityrelative_input available at the /sys/bus/iio/devices/iio:device0/ path. If the reading results in errors, you may also need a firmware update.
You can try using the following tutorial: Raspberry PI with DHT11

Statistics: Posted by peppe8o — Sun Nov 10, 2024 10:49 am



Viewing all articles
Browse latest Browse all 3745

Trending Articles