from machine import Pin, ADC
from utime import sleep, sleep_ms
from dht import DHT22
s_dht= DHT22(Pin(2))
while True:
s_dht.measure()
tem = s_dht.temperature()
hum = s_dht.humidity()
f = tem*1.8 +32
print("T:{} c H:{}% F:{}f".format(tem,hum, f))
sleep_ms(50)