from machine import Pin
from time import sleep
import dht
a = dht.DHT22(Pin(12))
x = Pin(14)
while True:
a.measure()
b = a.temperature()
c = a.humidity()
f = (b * 9/5) + 32
print ("temperature is",f,"F")
print ("humidity is", c)
if(f<70):
x.value(1)