from machine import Pin, ADC
from utime import sleep, sleep_ms
from dht import DHT22

sensor_dht=DHT22(Pin(4))

while True:
    
    sensor_dht.measure()
    temp=sensor_dht.temperature()
    hum=sensor_dht.humidity()
    print("T:{}, H:{}".format(temp,hum))
    sleep_ms(100)