import utime as time
import dht11
import math



temperature = 0
humidity = 0

dht = dht11.DHT11(0)
time.sleep(1)

def Temp():
    if dht.measure() == 0:
        print("DHT11 data error!")
    temperature = dht.temperature()
    current_temp = int((temperature * 1.8)+32)
    print(current_temp)
    return current_temp


def Hum():
    if dht.measure() == 0:
        print("DHT11 data error!")
    humidity = dht.humidity()
    humid = round(humidity)
    
        
        
        
        
        
        
        
        