from machine import Pin
from utime import sleep
from dht import DHT22
weather=DHT22(Pin(25))
while True:
weather.measure()
temp=weather.temperature()
hum=weather.humidity()
print(f'Temperature: {temp} C\n Humidity: {hum} %')
sleep(0.5)