Skip to content

DHT22 not working on Raspberry Pi wh  #65

Open
@QS3445

Description

@QS3445

Hope this is the right place to post this.. I'm a newby trying to setup a DHT 22 with rpwh, i am trying the dht_simpletest.py to see if my DHT 22 is reading ok, but getting this error...any thoughts on what going on.. Thanks

pi@raspberrypi:~ $ sudo python3 dht_simpletest.py
Traceback (most recent call last):
File "dht_simpletest.py", line 9, in
dhtDevice = adafruit_dht.DHT22(board.D4)
File "/usr/local/lib/python3.7/dist-packages/adafruit_dht.py", line 275, in init
super().init(False, pin, 1000, use_pulseio)
File "/usr/local/lib/python3.7/dist-packages/adafruit_dht.py", line 56, in init
self.pulse_in = PulseIn(self._pin, 81, True)
File "/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py", line 73, in init
message = self._wait_receive_msg(timeout=0.25)
File "/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py", line 92, in _wait_receive_msg
"Timed out waiting for PulseIn message. Make sure libgpiod is installed."
RuntimeError: Timed out waiting for PulseIn message. Make sure libgpiod is installed.

I checked python3, adafruit_dht.py, and Libgpiod are all installed !!

Would be thankful for any fix suggestions..

Thanks
QS3445

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions