from machine import Pin
import dht
import time
sensor = dht.DHT22(Pin(19))
while True :
sensor.measure()
temp = sensor.temperature()
hum = sensor.humidity()
print('temp :' , temp)
time.sleep(0.1) # 0.1 second
from machine import Pin
import dht
import time
sensor = dht.DHT22(Pin(19))
while True :
sensor.measure()
temp = sensor.temperature()
hum = sensor.humidity()
print('temp :' , temp)
time.sleep(0.1) # 0.1 second