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 (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
Code:
dtoverlay=dht11,gpiopin=17
You can try using the following tutorial: Raspberry PI with DHT11
Statistics: Posted by peppe8o — Sun Nov 10, 2024 10:49 am