This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//****************************************************************************************** | |
// File: smart_watering_v2.ino | |
// Author: John deGlavina | |
// | |
// The following sketch is used to water a garden depending on the readings of 4 moisture sensors. | |
// These moisture sensors correspond to 4 solenoid valves that will open when the water_threshold | |
// falls below the percentage that is set. When the threshold is reached again, the solenoid will | |
// close. The level of the moisture sensors will be checked every check_interval concurrently. | |
// | |
// The original setup uses a DF Robot 4 relay shield, moisture sensors v1.2 (found on ebay), |