Quantcast
Viewing all articles
Browse latest Browse all 1268

Python • Re: DHT22 Sensor with Pi 5 - import board error

Only expect Pi5 specific tutorials to work unless you are using gpiozero (a Python module).

Others were written for different hardware.

My lg library should work as it uses the Linux replacement for sysfs (a deprecated method of accessing the GPIO on Linux).

https://abyz.me.uk/lg/examples.html#Index

Please be aware that the DHT22 has tight timing requirements. Reads may not be reliable.

Statistics: Posted by joan — Mon Mar 18, 2024 8:36 am



Viewing all articles
Browse latest Browse all 1268

Trending Articles