import dht
from machine import Pin
sensor = dht.DHT22(Pin(5))
while True:
sensor.measure()
temp = sensor.temperature()
umid = sensor.humidity()
print(temp)
print(umid)
import dht
from machine import Pin
sensor = dht.DHT22(Pin(5))
while True:
sensor.measure()
temp = sensor.temperature()
umid = sensor.humidity()
print(temp)
print(umid)