Mycodo 8.16.2 on Raspberry Pi 5 - DHT11 shows only 0 values

Hello,

I am using Mycodo version 8.16.2 on a Raspberry Pi 5 with a DHT11 sensor. However, Mycodo cannot read the temperature or humidity values — it only shows 0.

On a Raspberry Pi 4, the same DHT11 sensor works normally, but on the Pi 5 it does not.
• Mycodo version: 8.16.2
• Sensor: DHT11
• Hardware: Raspberry Pi 5
• Issue: Temperature and humidity always read as 0

Is there a known issue with DHT11 support on Raspberry Pi 5, or do I need additional configuration to make it work?

Thank you!

The Pi 5 uses a different chip for GPIO pins than any other previous Pi version. Therefore, you should not expect any libraries that rely on GPIO pins to function properly on a Pi 5 if it was designed for a prior Pi version. This doesn’t necessarily mean it can’t work, just that the current software doesn’t because it wasn’t designed for the hardware (Pi 5).

1 Like

maybe this GitHub - phylax2020/RPi.GPIO: RPi.GPIO wrapper for WiringPi can be used.

1 Like