Worth mentioning it is not my first time, I have used the same code on other esp32 boards with the exact same DHT22 sensor and worked every time, but now I don't know why I'm failing here.
Code: Select all
import machine
import dht
PIN23 = machine.Pin(23, machine.Pin.IN, machine.Pin.PULL_UP)
sensor = dht.DHT22(PIN23)
sensor.mearure()
Code: Select all
Traceback (most recent call last): File "<stdin>",
line 1, in <module> File "dht.py",
line 23, in measure OSError: [Errno 116] ETIMEDOUT