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())
|
BIN
dht11/dht11_bb.png
Normal file
BIN
dht11/dht11_bb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
Reference in New Issue
Block a user