I'm trying to get data from a DHT11 on an STM32F401RE, however when I call the measure method, it gives me an error.
Here's the code:
Code: Select all
import machine, dht
d = dht.DHT11(machine.Pin('PA3'))
d.measure()
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "dht.py", line 16, in measure
OSError: [Errno 110] ETIMEDOUT
My pinout from left to right is: PA3, Vin, GND (it is a three pins sensor)
can someone help me? Thanks