Created
November 10, 2016 08:32
-
-
Save guillemborrell/2cd99db37fef88c697c7f372a483dc76 to your computer and use it in GitHub Desktop.
Experimenting with micropython and the dht11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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