micropython-examples/dht11/dht11.py

7 lines
112 B
Python
Raw Normal View History

2021-04-06 04:12:58 +00:00
import dht
import machine
d = dht.DHT11(machine.Pin(16))
d.measure()
print(d.temperature())
print(d.humidity())