• 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 23 June 2026 by Admin-Lavi Leave a Comment

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:

  • Sensor pin 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” shown.
  • Delay added for slow print.

Circuit Working:

Arduino with Non Contact Liquid Sensor Circuit Diagram

Parts List:

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

  • First, gather all the components as shown in circuit diagram
  • Next, connect the sensors red wire to the Arduinos 5V pin and the black wire to the GND pin.
  • Then, connect the sensors green signal output wire to Arduino digital pin D8.
  • Now multimeter connect its black probe to GN and red probe to sensor signal output of sensor

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.

Filed Under: Arduino Projects, Automation Circuits, Security and Protection, 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

  • 555 Timer Projects (122)
  • Alarm Circuits (75)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (103)
  • Automobile Circuits (38)
  • Battery Charger Circuits (86)
  • DIY Projects (365)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (23)
  • Hobby Circuits (194)
  • Indicator Circuits (62)
  • Inverter Circuits (19)
  • IoT projects (8)
  • LDR Circuits (45)
  • LED and Lamps (195)
  • Meters and Testers (43)
  • Mini Projects (279)
  • Motor Controllers (25)
  • Oscillator Circuits (63)
  • Power Supply Circuits (221)
  • Radio Frequency (7)
  • Remote Control Circuits (11)
  • Renewable energy (6)
  • Security and Protection (105)
  • Sensors and Detectors (223)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (175)
  • Transmitter Circuit (20)
  • Tutorials (23)
  • Voltage Regulator (38)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  2. colin on Simple Single Transistor Audio Amplifier Circuit
  3. How to Make a Bird Chirping Noise Easily on Chirping Bird Sound Generator Circuit
  4. Transistor Based Medium Impedance Preamplifier Circuit - Circuit Ideas for You on Low Impedance Input Transistor Preamplifier Circuit
  5. Admin-Lavi on Alternate Red Green LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas