Skip to content

Commit 675c6ad

Browse files
committed
Added comments explaining variables
1 parent aab9105 commit 675c6ad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Webhook_Plant_Sensor/code.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
from adafruit_seesaw.seesaw import Seesaw
1515
import busio
1616

17+
# Used to make sure that the Adafruit IO Trigger is only run once when the moisture value is below
18+
# the desired threshold, set in MIN
1719
LOW = False
20+
# The minimum moisture value. If the value is below this number, it will activate the Adafruit IO
21+
# trigger. This number should match the number you set in your Adafruit IO trigger. Feel free
22+
# to mess around and try out different moisture values as how wet this actually is can vary a lot
23+
# depending on where the sensor is and the soil in the pot.
1824
MIN = 500
1925

2026
# Set up moisture sensor with seesaw

0 commit comments

Comments
 (0)