Add dht11
This commit is contained in:
7
dht11/dht11.py
Normal file
7
dht11/dht11.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import dht
|
||||
import machine
|
||||
d = dht.DHT11(machine.Pin(16))
|
||||
|
||||
d.measure()
|
||||
print(d.temperature())
|
||||
print(d.humidity())
|
Reference in New Issue
Block a user