Site icon Circuit Ideas for You

Arduino with Non Contact Liquid Sensor Circuit

An Arduino with a Non-Contact Liquid Sensor Circuit detects water or other liquids without touching them; therefore, it functions as a contactless sensor.

Also, it works on capacitance change near container wall and sensor sense water inside plastic or glass without direct contact.

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

Arduino Code:

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:

Arduino with Non Contact Liquid Sensor Circuit Diagram

Parts List:

ComponentsQuantity
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 and then 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:

To conclude, Arduino with Non Contact Liquid Sensor Circuit is very simple, it is safe because no direct touch with liquid.

Furthermore, it uses capacitance principle and with Arduino we can detect level and make alarms, motor control or auto cut off.

Also, it is cheap, useful and easy for projects.

Exit mobile version