You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
IoT-For-Beginners/2-farm/lessons/1-predict-plant-growth/code-temperature/pi/temperature-sensor/app.py

10 lines
157 B

import time
from seeed_dht import DHT
sensor = DHT("11", 5)
while True:
_, temp = sensor.read()
print(f'Temperature {temp}°C')
time.sleep(10)