add time output

This commit is contained in:
robert 2021-02-15 23:31:59 +01:00
parent 192b0881bb
commit 3a4d974a89
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ while True:
#Output format: DD/MM/YYYY H:M:S
dt_string = now.strftime("%d-%m-%Y %H:%M:%S")
print(dt_string)
# Get Temperature from DHT
_, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN)