Water Level Sensor Interfacing
with Arduino Uno
By Engr.Habib Ur Rehman
Components/Equipment Required:
Following Components/Equipment are
required to perform task.
1.
Arduino
Uno (https://piees.pk/product/arduino-uno-r3/)
2.
Water
Level Sensor (https://piees.pk/product/water-lavel-sensor/)
3.
Breadboard
4.
Jumper
Wires(https://piees.pk/product-category/jumper-wires/)
Circuit
Diagram:
Arduino Program:
void
setup()
{
Serial.begin(9600);
}
void
loop()
{
int val = analogRead(A0); // read input value
Serial.print("Pin Value ");
Serial.println(val);
delay(2000);
}
Note:
To See the Output Serial
Communication Emulator is use.
No comments:
Post a Comment