Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 211 Bytes
import time
from dht12 import DHT12
sensor = DHT12()
while True:
sensor.measure()
print("Temperature:%.2f" % (sensor.temperature()))
print("Humidity:%.2f \n" % (sensor.humidity()))
time.sleep(1)