I would like to graph the temperature and humidity data of DHT11 later.
For the time being, use while and time.sleep () to get it every second.
timer.py
#!/usr/bin/env python
import time
while True:
print "Hello"
time.sleep(1)
Implement read processing from DHT11 in the print "Hello" part.
It seems that you can do it with cron, but it is supported by python code.
Recommended Posts