Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Experimenting with micropython and the dht11
import dht
import machine
d = dht.DHT11(machine.Pin(4))
d.measure()
print(d.temperature(), d.humidity())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment