from machine import Pin
from time import sleep
import dht
sensor = dht.DHT22(Pin(14))
while True:
sleep(2)
sensor.measure()
temp = sensor.temperature()
hum = sensor.humidity()
temp_f = temp *(9/5 +32.0)
print("tempereture in c",temp,"c")
print("tempereture in f",temp,"f")
print("humidity in %",hum,"%")