/* e-Gizmo Water Level Sensor Sample Codes Reads the Digital Output on pins and prints the result to the serial monitor. by e-Gizmo Mechatronix Central November 26, 2014 http://www.e-gizmo.com */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the output on digital pins: int Level1 = digitalRead(5); int Level2 = digitalRead(6); int Level3 = digitalRead(7); // print out the value you read:s Serial.print("Level 1 = "); Serial.print(Level1); Serial.print(" "); Serial.print("Level 2 = "); Serial.print(Level2); Serial.print(" "); Serial.print("Level 3 = "); Serial.print(Level3); Serial.println(" "); delay(1);//delay ms }