diff --git a/lift_control/lift_control.ino b/lift_control/lift_control.ino index 66f7c5f..dd5d020 100644 --- a/lift_control/lift_control.ino +++ b/lift_control/lift_control.ino @@ -5,6 +5,7 @@ // Replace with your network credentials const char* ssid = "Galaxy M211BF1"; const char* password = "pufy3612"; +// Select the Pin for the ultrasonic sensor const int trigPin = 14; const int echoPin = 12; long duration; @@ -20,7 +21,6 @@ void setup(void) { //the HTML of the web page page = "

Lift Control using Web Server

"; - pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output pinMode(echoPin, INPUT); // Sets the echoPin as an Input pinMode(D2, OUTPUT); // inputs for motor 1