Skip to content

Instantly share code, notes, and snippets.

@guillemborrell
Created November 10, 2016 08:32
Show Gist options
  • Save guillemborrell/2cd99db37fef88c697c7f372a483dc76 to your computer and use it in GitHub Desktop.
Save guillemborrell/2cd99db37fef88c697c7f372a483dc76 to your computer and use it in GitHub Desktop.
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