# modules
from machine import Pin
from utime import sleep
from dht import DHT22 # if the sensor is DHT11, import DHT11 instead of DHT22
#declaring the LED lights
# creating a DHT object
# change DHT22 to DHT11 if DHT11 is used
dht = DHT22(Pin(15))
temp = dht.temperature()
while True:
dht.measure()
temp = dht.temperature()
print(f"Temperature: {temp}°C")
sleep(3)