mkoterski / koteshi-san

Koteshi-san is a collection of tools that I found helpful in building my automatic plant watering system using a raspberry pi 4 which I had lying around.
GNU General Public License v3.0
1 stars 0 forks source link

DHT11 sensor data cannot be read #2

Closed mkoterski closed 3 years ago

mkoterski commented 3 years ago

Tests with various scripts failed to read DHT11 humidity and temperature data. Exchange for DHT22 planned. Revisiting issue once replaced.

mkoterski commented 3 years ago

Tests with DHT22 failed as well. Turns out that the Adafruit DHT library that I used, wasn't updated to support Raspberry Pi 4 revision 1.1.

Raspberry Pi 4 rev. 1.0 uses a BCM2835 (same as Raspberry Pi 3) Raspberry Pi 4 rev. 1.1 uses a BCM2711

platform_detect.py has a check for the Raspberry Pi version. Modifying the setup however still had failed to produce usable results. Since this repo is no longer maintained, I switched to CircuitPython (https://learn.adafruit.com/dht/dht-circuitpython-code). After installing this module, both sensors work properly on Raspberry Pi 4 rev. 1.1.