Add dht11

This commit is contained in:
Jimmy 2021-04-06 16:12:58 +12:00
parent d0d27a6715
commit 368a8d5015
2 changed files with 7 additions and 0 deletions

7
dht11/dht11.py Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB