I have just tried to read the device on the pyboard and are unable to get any data:
Code: Select all
import dht, pyb
dhti = dht.DHT22(pyb.Pin('Y6',pyb.Pin.IN,pyb.Pin.PULL_UP))
dhti.measure()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "dht.py", line 16, in measure
OSError: [Errno 110] ETIMEDOUT
I know this device is working for sure as the same device plugged into the ESP8266 returns it's data correctly ?!
Any suggestions ?