#ReadTemperatureRead Temperature sensor
def ReadTemperature(places):
humidity,temperature = Adafruit_DHT.read_retry(sensor,pin)
temperature = round(temperature,places)
return temperature
while True:
#Take Temperature reading via DHT22
temperature_percentage = ReadTemperature(2)
1.4m articles
1.4m replys
5 comments
57.0k users