Skip to content

Instantly share code, notes, and snippets.

@kloneets kloneets/

Created Feb 18, 2016
What would you like to do?
Get remperature from DGT11
import Adafruit_DHT
while True:
humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT11, 4)
print "Temperature: " + str(temperature)
except (KeyboardInterrupt, SystemExit):
print "\nInterrupted by user"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.