As a test, I used a pi4 running Bookworm 64-bit and this python DHT11 tutorial https://pimylifeup.com/raspberry-pi-dht11-sensor/
Edit the scritp to use GPIO17 not 4. Wiring (my module has a pull-up resistor on its board):Code:
data to pi GPIO17Vcc to pi 3V3 GND to pi GND
When I used GPIO17, I got the output
Code:
Unable to set line 17 to input
Because it's defined in the device tree as dht11 pin. So the module uses it I guess.
I used pin 4, changed the wires. And it worked fine.
Code:
Temp:29.0 C / 84.2 F Humidity: 61%Temp:29.0 C / 84.2 F Humidity: 61%Temp:29.0 C / 84.2 F Humidity: 61%Checksum did not validate. Try again.
So, I changed the device tree into GPIO4 instead of 17 to work from the kernel module, and it showed the same error
Code:
cat: in_temp_input: Input/output error
Statistics: Posted by abdu744 — Tue Jun 11, 2024 12:52 am