• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino with Non Contact Liquid Sensor Circuit

Arduino with Non Contact Liquid Sensor Circuit

Last updated on 11 September 2025 by Admin-Lavi Leave a Comment

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:

  • Sensor pin is set as input.
  • Arduino read signal using digitalRead.
  • If sensor output HIGH then it means liquid is present.
  • Serial monitor show “Liquid Detected”.
  • If LOW then “No Liquid” will be shown.
  • Delay is added for slow print.

Circuit Working:

Arduino with Non Contact Liquid Sensor Circuit Diagram

Parts List:

ComponentQuantity
Arduino UNO1
XKC-Y26-V Sensor1
Multimeter1
Container like Plastic or Glass1
  • Put plastic or glass water container on table as per circuit diagram.
  • Clean outer wall where sensor will sit.
  • Place XKC-Y26-V sensor on outside wall with flat side near water line.
  • Fix sensor with tape or clip but not too hard.
  • Connect Red wire to Arduino 5V.
  • Black wire to Arduino GND.
  • Green wire to Arduino pin D8 or multimeter +
  • If using a multimeter then black probe to GND and red probe to signal wire.
  • Start with empty container.
  • Sensor will see air only.
  • Output will be LOW to 0V.
  • Multimeter will show 0V.
  • Arduino will read LOW.
  • No buzzer or pump.
  • Pour water slowly.
  • Water rise to sensor level.
  • When water is near sensor then dielectric will change.
  • Capacitance increase inside sensor.
  • Circuit detects the change.
  • Output will go HIGH to 5V.
  • Multimeter will show 5V.
  • Arduino will read HIGH.
  • Now buzzer, LED, pump can turn ON.
  • If water keep rising then output will stay HIGH.
  • Sensor changes only when level crosses.
  • When water goes down then dielectric back to air.
  • Capacitance will drop.
  • Output will go back to LOW with 0V.
  • Multimeter will show 0V.
  • Arduino will read LOW.
  • Pump or alarm will stop.

Formula:

Sensor work on capacitance formula.

C = ε × A / d

where,

  • C is capacitance
  • ε is permittivity of material
  • A is plate area
  • d is distance between sensor and liquid.

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:

  • Gather all the components as shown in circuit diagram
  • Sensor Red wire goes to 5V pin of Arduino.
  • Black wire goes to GND pin.
  • Green wire is signal output pin and is connected to Arduino digital pin D8.
  • multimeter connect its black probe to GND
  • And red probe to sensor signal output of sensor

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?

Filed Under: Arduino Projects, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Arduino Piano Music Keyboard with Memory Circuit
Next Post: Water Quality Test Circuit using Arduino and Turbidity Sensor »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (33)
  • Amplifier Circuits (67)
  • Arduino Projects (39)
  • Audio Circuits (95)
  • Automobile Circuits (19)
  • Battery Charger Circuits (48)
  • Free Energy (13)
  • Heater and Temperature Controllers (10)
  • High Voltage (1)
  • Indicator Circuits (39)
  • Inverter Circuits (13)
  • LDR Circuits (15)
  • LED and Lamps (116)
  • Meters and Testers (28)
  • Motor Controllers (18)
  • Oscillator Circuits (34)
  • Power Supply Circuits (92)
  • Remote Control Circuits (6)
  • Security and Protection (25)
  • Sensors and Detectors (86)
  • Solar Circuits (17)
  • Timer Circuits (30)
  • Transistor Circuits (57)
  • Transmitter Circuit (12)
  • Tutorials (5)
  • Water Level Controller (4)

Recent Posts

  • Water Quality Test Circuit using Arduino and Turbidity Sensor
  • Arduino with Non Contact Liquid Sensor Circuit
  • Arduino Piano Music Keyboard with Memory Circuit
  • Sound Sensor Circuit using IC LM393
  • Sound Sensor Direction Circuit using Arduino

Recent Comments

  1. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  2. Bill on Constant Voltage, Constant Current Battery Charger Circuit
  3. Admin-Lavi on Long Range FM Transmitter Circuit (2km)
  4. Sina on Long Range FM Transmitter Circuit (2km)
  5. Admin-Lavi on Long Range FM Transmitter Circuit (2km)

Copyright © 2025 | New Circuit Ideas