This file contains hidden or 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
| int waterSensor = 13; //Digital Pin 13 | |
| int waterPump = 7; //Digital Pin 7 | |
| // int waterCheck = digitalRead(waterSensor); | |
| int counter = 0; | |
| void setup() | |
| { | |
| pinMode(waterSensor, INPUT); | |
| pinMode(waterPump, OUTPUT); | |
| Serial.begin(9600); | |
| } |