It causes exception ETIMEOUT
Code: Select all
import dht
import time
aPin = 14
#Pin = machine.Pin(aPin, machine.Pin.IN, machine.Pin.PULL_UP)
Pin = machine.Pin(aPin)
Obj = dht.DHT22(Pin)
time.sleep_ms(250)
Obj.measure()
-> exception : ETIMEOUT
https://github.com/micropython/micropyt ... /dht/dht.c
However this driver works good on micropython wirh DHT22 sensor
It seems that DHT21 and DHT22 are similar. Or not?
On a raspberry i use another python driver from Adafruit_DHT and both DHT21 and DHT21 are working good
how to solve this problem using micropython on ESP8266 chip?