Files
grow-python/examples/advanced/moisture.py
2020-08-27 13:47:12 +01:00

24 lines
290 B
Python

import time
from grow.moisture import Moisture
print("""moisture.py - Print out sensor reading in Hz
Press Ctrl+C to exit!
""")
m1 = Moisture(1)
m2 = Moisture(2)
m3 = Moisture(3)
while True:
print(f"""1: {m1.moisture}
2: {m2.moisture}
3: {m3.moisture}
""")
time.sleep(1.0)