from machine import Pin
from time import sleep
from dht import DHT22
dht = DHT22(Pin(15))
while True:
    dht.measure()
    temp = dht.temperature()
    hum = dht.humidity()
    print(f"Temperature: {temp}°Humidity: {hum}% ")
    sleep(5)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT