from dht import DHT22
from machine import Pin
from utime import sleep

sensorDHT = DHT22(Pin(15))

while True:
    sensorDHT.measure()
    temp = sensorDHT.temperature()
    hum = sensorDHT.humidity()
    kel = temp + 273
    far = (temp * 9)/5 + 32
    print("T ={:02} °C H={:02}%  K={:02}K  F={:02}F" .format (temp, hum, kel, far))