-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Photon_HydroponicWateringSystem_Sketch.ino
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
//by Nitin Sawant | ||
//[email protected] | ||
|
||
int r1 = D0;//relay | ||
int r1 = D0;//relay - for water pump switch on/off | ||
|
||
int t1 = D1;//trigger ss1 | ||
int e1 = D2;//echo ss1 | ||
int t2 = D3;//trigger ss2 | ||
int e2 = D4;//echo ss2 | ||
int t1 = D1;//trigger ss1 - ultrasonic sensor1 | ||
int e1 = D2;//echo ss1 - ultrasonic sensor1 | ||
int t2 = D3;//trigger ss2 - ultrasonic sensor2 | ||
int e2 = D4;//echo ss2 - ultrasonic sensor2 | ||
|
||
float distance1, distance2; | ||
float upper_level,lower_level; | ||
|