Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
sagar saini
Published © GPL3+

A Look at Capacitive Water Overflow Sensor

A sensor that can detect the water in a beaker, container or tank from outside based on capacitance measurement.

BeginnerFull instructions provided1 hour260
A Look at Capacitive Water Overflow Sensor

Story

Read more

Schematics

Circuit diagram

Code

Code

Arduino
int inPin = 8;
boolean running = 0;//when running=1, the liquid is detected, print out 1, otherwise, print out 0; running=0, the liquid is detected, print out 0, otherwise, print out 1.
int modePin = 9;
void setup()
{
Serial.begin(9600);
pinMode(inPin, INPUT);
pinMode(modePin, OUTPUT);
digitalWrite(modePin, running);
}
void loop()
{
Serial.println(digitalRead(inPin));
delay(1000);
}

Credits

sagar saini
83 projects • 95 followers
I am Sagar Saini an electronic hardware enthusiast
Contact

Comments

Please log in or sign up to comment.