print("Environmental Monitoring")
#import BlynkLib
from machine import Pin
from time import sleep
import dht
import time
sensor = dht.DHT22(Pin(14))
#sensor = dht.DHT11(Pin(14))
while True:
sensor.measure()
temp = sensor.temperature()
hum = sensor.humidity()
#temp_f = temp * (9/5) + 32.0
print('Temperature: %3.1f C' %temp)
#print('Temperature: %3.1f F' %temp_f)
print('Humidity: %3.1f %%' %hum)
time.sleep(1)