Add dht11
This commit is contained in:
1 parent
d0d27a6715
commit
368a8d5015
2 files changed
+7
No files matched your search
@@ -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 |
Reference in new issue
Block a user