from machine import Pin
from time import sleep
from dht import DHT22
sensor = DHT22(Pin(15))
ledR=Pin(14, Pin.OUT)
ledY=Pin(14, Pin.OUT)
ledG=Pin(14, Pin.OUT)
while True:
sensor.measure()
t=sensor.temperature()
h=sensor.humidity()
print("Termperature" ,t, "°C")
print("Humedad",h, %)