add time output
This commit is contained in:
parent
192b0881bb
commit
3a4d974a89
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user