SENSORS & ACTUATORS · HUMIDITY

Humidity Sensors: Capacitive Sensing, RH, Error Sources, and Control Use

From capacitance and dielectric materials to humidity measurement, calibration, sensor placement, and feedback-control use.

PUBLISHED 24 MAY 2017UPDATED 7 AUGUST 2026FULL TECHNICAL NOTE

A humidity sensor converts water-vapor conditions in air into an electrical quantity that can be measured. One common approach uses a humidity-sensitive dielectric whose electrical permittivity changes as it absorbs or releases moisture.

The useful output is normally relative humidity, but the sensor itself does not “measure RH directly.” It responds to a physical property, the electronics condition that response, and calibration converts the electrical signal into a humidity estimate.

What relative humidity actually means

Relative humidity compares the actual water-vapor partial pressure with the saturation vapor pressure at the same temperature. This is why RH is strongly temperature dependent. Air containing the same absolute amount of water vapor can have a different RH after its temperature changes.

RH (%) = 100 × pv / psat(T)

Here pv is the water-vapor partial pressure and psat(T) is the saturation vapor pressure at the current temperature. This temperature dependence is important in environmental control: a controller can observe an RH change even if no moisture was added or removed, simply because temperature changed.

The capacitor principle behind capacitive sensing

A basic capacitor consists of two conductive electrodes separated by a dielectric. For an ideal parallel-plate capacitor:

C = εA / d

Capacitance C depends on dielectric permittivity ε, overlapping electrode area A, and spacing d. Three common sensing approaches are to change electrode spacing, overlapping area, or the dielectric properties between electrodes.

Changing quantityTypical sensing idea
Electrode spacing, dDisplacement, pressure, membrane deflection
Overlapping area, APosition or level-related geometries
Dielectric permittivity, εHumidity, material composition, fluid presence

For capacitive humidity sensing, electrode geometry is usually fixed. The useful change is primarily the effective dielectric permittivity of a moisture-sensitive film.

Charging, discharging, and how capacitance becomes measurable

When a capacitor is connected to a voltage source, charge accumulates on its electrodes. The stored charge follows:

Q = C V

If the capacitor is connected through a resistor, its voltage changes with a time constant:

τ = R C

This creates several possible electronic measurement strategies. A circuit can measure RC timing, oscillation frequency, charge transfer, bridge imbalance, or capacitance directly using a dedicated converter. The sensor element only provides a small capacitance change; the surrounding electronics determine how that change becomes a stable digital or analog output.

How moisture changes the sensing film

A hygroscopic dielectric layer absorbs and releases water molecules as the surrounding humidity changes. Because water has very different dielectric properties from the dry sensing polymer, the effective permittivity of the layer changes. That changes capacitance.

The relationship is not perfectly ideal. Real sensors require calibration because response can depend on temperature, manufacturing variation, film thickness, aging, and contaminants. Manufacturers often store calibration coefficients in the sensor or apply them during production.

Where humidity measurement goes wrong

Temperature influence

RH itself depends on temperature, while the sensing element and electronics also have temperature coefficients. Compensation is therefore often required.

Response time

A protective filter and hygroscopic film need time to exchange moisture with the surrounding air. Fast process changes may be measured with delay.

Hysteresis

The sensor may not follow exactly the same path when humidity rises as when it falls, creating a small history-dependent error.

Condensation

Liquid water on the sensing element can produce a response very different from equilibrium water vapor and may require recovery time.

Contamination

Dust, aerosols, chemicals, or nutrient mist can alter the exposed sensing film or protective membrane.

Placement

A sensor near a mist outlet, wall, heat source, or exhaust can report a local microenvironment rather than the representative chamber condition.

The DHT11 in the aeroponic project

The control project used a DHT11 as the humidity feedback device and reported that it could read the intended working region from roughly 65% to 90% RH. The attraction of a device like the DHT11 is integration: sensing element, signal conditioning, calibration, and digital communication are packaged together.

That convenience also imposes limits. A low-cost digital sensor has finite resolution, update rate, accuracy, and response time. Those limits become part of the control loop. If the controller reacts faster than the sensor can represent the process, the apparent error may stay unchanged for several cycles and then jump by one digital increment.

Measurement quality affects controller quality

A controller calculates action from measured error. If the measurement is noisy, delayed, biased, or poorly located, the controller responds to those imperfections as if they were real process behavior.

For the aeroponic humidity loop, a useful sensor review would include:

  1. Compare the sensor against a known reference at several humidity points.
  2. Record both increasing- and decreasing-humidity runs to look for hysteresis.
  3. Estimate response time after a step change in humidity.
  4. Test alternative mounting locations inside the chamber.
  5. Check whether mist droplets contact the sensor directly.
  6. Record temperature at the same time as RH.
Control-system lesson

Tuning gains before checking the measurement path can hide the real problem. A sluggish or biased sensor may lead to “better tuning” that only compensates one test condition and performs poorly elsewhere.

Selecting a humidity sensor for an engineering application

SpecificationWhy it matters
RH operating rangeThe application must stay within the validated range, including startup and fault conditions.
AccuracyDetermines uncertainty around the reported RH value.
ResolutionLimits the smallest change visible to the controller or logging system.
Response / recovery timeDetermines how quickly changing humidity can be tracked.
Temperature rangeAffects both sensor survival and compensation quality.
Condensation toleranceCritical for misting, greenhouse, HVAC, and high-RH environments.
InterfaceAnalog, I²C, one-wire-style proprietary digital, or another communication method affects integration.