From a0a23876092b113ea37edb01b914170b10448b5a Mon Sep 17 00:00:00 2001 From: Nitin S Date: Wed, 28 Aug 2024 12:57:16 +0530 Subject: [PATCH] Update Photon_HydroponicWateringSystem_Sketch.ino --- Sketch/Photon_HydroponicWateringSystem_Sketch.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sketch/Photon_HydroponicWateringSystem_Sketch.ino b/Sketch/Photon_HydroponicWateringSystem_Sketch.ino index 5b6eec8..5cfbc7b 100644 --- a/Sketch/Photon_HydroponicWateringSystem_Sketch.ino +++ b/Sketch/Photon_HydroponicWateringSystem_Sketch.ino @@ -4,12 +4,12 @@ //by Nitin Sawant //nitin@nitinsawant.com -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;