from machine import Pin
from time import sleep
import dht
led = Pin(15, Pin.OUT)
dh = dht.DHT22(Pin(13))
tempest = 30
while True:
dh.measure()
temp = dh.temperature()
print(f'Temp: {temp} C')
if temp > tempest:
led.value(1)
else:
led.value(0)