I'm new to the raspberry Pi Pico.
I've been programming my Pico in micropython to use a DHT20 temperature and humidity sensor, using the library given in the seeedwiki I can't get it to work using the code they give me as seen below:
from machine import I2C
from dht20 import DHT20
i2c = I2C(0)
dht20 = DHT20(i2c)
while True:
temper = dht20.dht20_temperature()
humidity = dht20.dht20_humidity()
print("temper : " + str(temper))
print("humidity : " + str(humidity))
Using the code above with the dht20 library results in this error
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
File "dht20.py", line 6, in __init__
File "dht20.py", line 25, in dht20_read_status
OSError: [Errno 5] EIO
The dht20 library can be found in this file: