Open Source

Capacitive Sensing Applications: From Liquid Level Detection to Smart IoT Interfaces

Capacitive Sensing Applications: From Liquid Level Detection to Smart IoT Interfaces

Capacitive sensing is one of the most versatile measurement techniques in electronics today. By detecting changes in capacitance between an electrode and its surroundings, it enables entirely non-contact measurement — no moving parts, no wear, no contamination risk. It’s the same principle behind your phone’s touchscreen, but its applications extend far beyond consumer devices.

Whether you’re monitoring fluid levels in an industrial tank, designing a touchless control panel for a medical device, or building a smart agriculture system, capacitive sensing offers an elegant solution. In this article, we explore the most common real-world applications and how open-source platforms like the ProtoCentral FDC1004 Breakout Board and the Sensything CAP make it easy to get started.

How Does Capacitive Sensing Work?

At its core, a capacitive sensor measures changes in an electric field. A sensing electrode creates an electric field relative to ground, and when a material — a liquid, a human hand, or any dielectric — enters that field, the measured capacitance changes. A capacitance-to-digital converter (CDC) like the Texas Instruments FDC1004 translates this tiny change into a digital reading with femtofarad-level resolution.

The key advantage is that the sensing electrode doesn’t need to touch the material being measured. You can sense liquid levels through a plastic tank wall, detect a hand hovering above a surface, or measure material properties without any physical contact.

Capacitive vs. Resistive Sensing: How Do They Compare?

If you’ve worked with sensors before, you’ve likely encountered resistive sensing — the older, more established approach. Both techniques measure physical changes electrically, but they work in fundamentally different ways and suit very different applications.

Resistive sensing measures changes in electrical resistance. A resistive touch sensor, for example, uses two conductive layers separated by a thin gap; pressing them together completes a circuit. Resistive level sensors use probes immersed directly in a liquid, where the resistance between electrodes changes with the fluid level. It’s straightforward and inexpensive, but it comes with significant trade-offs.

Capacitive sensing, by contrast, measures changes in an electric field without requiring physical contact between the sensor and the target. This single difference has cascading implications for durability, hygiene, and design flexibility.

Where capacitive wins:

  • Non-contact operation — no need to touch the liquid, surface, or object being measured. This is the defining advantage. Resistive sensors require direct mechanical contact, which introduces wear, contamination risk, and maintenance burden.
  • No moving parts or exposed conductors — capacitive sensors can be fully sealed behind glass, plastic, or other non-metallic surfaces. Resistive probes corrode over time, especially in chemical or saline environments.
  • Higher sensitivity and resolution — the FDC1004, for example, resolves 0.5 femtofarads, enabling detection of very small changes in proximity or fluid level. Resistive sensors are generally coarser.
  • Better suited for hygiene-critical applications — food, pharma, and medical environments benefit enormously from sensors that never contact the product.
  • Longer lifespan — no mechanical wear means capacitive sensors can last for years without replacement or recalibration.

Where resistive still has a place:

  • Lower cost for simple applications — a basic resistive touch membrane or float switch is cheaper than a capacitive system for applications where precision isn’t critical.
  • Works with metallic containers — capacitive through-wall sensing requires non-metallic tank walls. Resistive probes can be inserted directly into metal tanks.
  • Simpler electronics — resistive sensing typically needs only a voltage divider and an ADC, whereas capacitive sensing benefits from a dedicated CDC like the FDC1004 for best results.
  • Less sensitive to environmental noise — capacitive sensors can be affected by stray capacitance from nearby wiring or objects, requiring careful layout. Resistive sensors are generally more immune to electromagnetic interference.

For most modern applications — especially in IoT, touchless interfaces, and non-contact measurement — capacitive sensing is the stronger choice. The initial complexity is well handled by integrated ICs like the FDC1004, and the long-term advantages in reliability, hygiene, and design flexibility far outweigh the slightly higher entry cost.

Industrial storage tanks at a water treatment facility
Industrial liquid storage tanks — capacitive sensing enables non-contact level measurement through tank walls without any modifications to the vessel. Photo: Unsplash (free to use)

Application 1: Non-Contact Liquid Level Sensing

This is arguably the most compelling application of capacitive sensing, and it’s where the FDC1004 truly shines. Traditional liquid level sensors — float switches, ultrasonic transducers, pressure transmitters — all require either direct contact with the liquid or a clear line of sight to the surface. Capacitive sensing eliminates both requirements.

How it works: A flat electrode (even a simple piece of copper tape) is placed on the outside of a non-metallic tank wall. As the liquid level rises past the electrode, the dielectric constant of the medium between the electrode and ground changes — from air (~1.0) to water (~80) or whatever liquid you’re measuring. The FDC1004 detects this shift with 0.5 femtofarad resolution across its 4 independent channels.

Why it matters:

  • No contamination risk — the sensor never contacts the liquid, making it ideal for food, pharmaceutical, and chemical applications
  • No tank modification — no drilling holes, no fittings, no leak points
  • Works with any non-metallic container — plastic, glass, ceramic, even thick-walled industrial tanks
  • Multiple measurement points — the FDC1004’s 4 channels let you place electrodes at different heights for graduated level detection

This is one of our most popular Hackster projects: Non-Contact Capacitive Liquid Level Sensing Using FDC1004. It demonstrates the complete setup using the FDC1004 breakout board, copper tape electrodes, and an Arduino.

Real-world use cases: Water treatment plants, chemical processing, beverage manufacturing, pharmaceutical production, aquarium and hydroponic systems, rainwater harvesting tanks.

A hand interacting with a touchless digital interface
Touchless interfaces use capacitive proximity sensing to detect hand gestures without physical contact. Photo: Unsplash (free to use)

Application 2: Proximity and Gesture Sensing

Capacitive proximity sensing detects the presence and position of a human body (or other conductive object) without any physical contact. When a hand approaches a sensing electrode, the body’s inherent capacitance couples with the sensor’s electric field, producing a measurable signal change.

Applications in this space include:

  • Touchless control panels — for medical devices, public kiosks, and industrial equipment where hygiene or glove use makes traditional buttons impractical
  • Gesture recognition — detecting hand swipes, hovers, and proximity at distances of 10-50 mm for intuitive user interfaces
  • Human presence detection — smart lighting, automatic door systems, and occupancy-based HVAC control
  • Automotive interfaces — rain-sensing windshield wipers, seat occupancy detection, and touchless infotainment controls

The FDC1004’s ability to handle offset capacitances up to 100 pF makes it particularly well suited for proximity sensing, where parasitic capacitances from wiring and PCB traces can easily overwhelm less capable sensors. Its 4-channel architecture also enables spatial sensing — you can determine not just whether a hand is present, but roughly where it is.

Real-world use cases: Hospital bedside controls, elevator buttons, industrial machine interfaces, smart home light switches, automotive dashboards, public information kiosks.

An automated greenhouse with sensors monitoring plant growth
Smart agriculture and industrial IoT systems increasingly rely on non-contact sensing for environmental monitoring. Photo: Unsplash (free to use)

Application 3: Industrial IoT and Smart Automation

When you combine precision capacitive sensing with wireless connectivity, you unlock a whole category of industrial IoT applications. This is exactly what the Sensything CAP was designed for — it pairs the FDC1004 with an ESP32-S3 microcontroller, giving you Wi-Fi, Bluetooth LE, and enough processing power for edge computing, all in a single board.

Industrial and IoT applications include:

  • Remote tank monitoring — place Sensything CAP units on multiple tanks across a facility and stream level data over Wi-Fi to a central dashboard. No wiring runs, no intrusive sensors
  • Smart agriculture — soil moisture estimation (capacitance changes with water content), irrigation tank monitoring, and nutrient solution level tracking in hydroponic systems
  • Material detection and sorting — capacitive sensing can differentiate between materials based on their dielectric properties, useful in recycling, quality control, and manufacturing
  • Environmental monitoring — humidity sensing, ice detection on surfaces, and condensation monitoring in cold storage facilities
  • Predictive maintenance — monitoring lubricant or coolant levels in machinery without interrupting operation

The Sensything CAP’s onboard Li-Poly battery charging circuit and low-power ESP32-S3 sleep modes make it practical for battery-powered deployments where sensors need to run for weeks or months between charges.

Real-world use cases: Chemical plant tank farms, greenhouse automation, food processing lines, cold chain logistics, water distribution networks, industrial equipment monitoring.

Choosing the Right Board for Your Project

Both the FDC1004 breakout and Sensything CAP use the same TI FDC1004 capacitance-to-digital converter at their core. The difference lies in what surrounds it:

ProtoCentral FDC1004 Breakout Board (₹1,695) — A compact I2C breakout that connects to any Arduino, Raspberry Pi, or microcontroller. Best for prototyping, integration into existing systems, and projects where you already have a host MCU. Features QWIIC connectors for solderless hookup.

ProtoCentral Sensything CAP (₹4,995) — An all-in-one wireless capacitive sensing platform with ESP32-S3, Wi-Fi, Bluetooth LE, battery management, and I2C/SPI expansion. Best for IoT deployments, wireless data logging, and standalone sensing applications where you need everything on one board.

Both boards are fully open-source — hardware designs (KiCad), firmware, and example code are all available on GitHub.

Getting Started

Ready to build your own capacitive sensing project? Here are the resources to get you going:

Capacitive sensing is one of those technologies that’s deceptively simple in concept but incredibly powerful in practice. Whether you’re a maker building your first sensor project or an engineer designing an industrial monitoring system, the open-source tools are here to help you get from idea to working prototype quickly.

Have a capacitive sensing project you’d like to share? Join the conversation on our GitHub Discussions or tag us on Hackster.io.

Related reading