Site icon Circuit Ideas for You

Arduino with Non Contact Liquid Sensor Circuit

Arduino with Non Contact Liquid Sensor Circuit is useful to detect water or any liquid without touching it.

It is called contactless sensor.

It works on capacitance change near container wall.

Sensor sense water inside plastic or glass without direct contact.

It is safe, easy and clean project one should give it a try for.

Circuit Coding:

int sensorPin = 8;
int sensorValue = 0;

void setup() {
pinMode(sensorPin, INPUT);
Serial.begin(9600);
}

void loop() {
sensorValue = digitalRead(sensorPin);
if(sensorValue == HIGH) {
Serial.println("Liquid Detected");
} else {
Serial.println("No Liquid");
}
delay(500);
}

Code Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Arduino UNO 1
XKC-Y26-V Sensor1
Multimeter1
Container like Plastic or Glass1

Formula:

Sensor work on capacitance formula.

C = ε × A / d

where,

When liquid level rises effective permittivity ε increase.

So capacitance change.

Sensor detect this change and give digital output.

How to Build:

To build a Arduino with Non Contact Liquid Sensor Circuit follow the below connections steps:

Conclusion:

Arduino with Non Contact Liquid Sensor Circuit is very simple.

It is safe because no direct touch with liquid.

It uses capacitance principle.

With Arduino we can detect level and make alarms, motor control or auto cut off.

It is cheap, useful and easy for projects.

References:

How do I use this water sensor?

Exit mobile version