from machine import Pin
import dht
import time
t = None
h = None
dhts=dht.DHT22(Pin((22)));dhts.measure();time.sleep(2)
while True:
dhts.measure()
t = dhts.temperature()
h = dhts.humidity()
print(''.join([str(x) for x in [t, ',', h]]))
time.sleep(1)