Add dht11
This commit is contained in:
parent
d0d27a6715
commit
368a8d5015
|
@ -0,0 +1,7 @@
|
|||
import dht
|
||||
import machine
|
||||
d = dht.DHT11(machine.Pin(16))
|
||||
|
||||
d.measure()
|
||||
print(d.temperature())
|
||||
print(d.humidity())
|
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
Loading…
Reference in New Issue