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 / dCapacitance 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 quantity | Typical sensing idea |
|---|---|
| Electrode spacing, d | Displacement, pressure, membrane deflection |
| Overlapping area, A | Position 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 VIf the capacitor is connected through a resistor, its voltage changes with a time constant:
τ = R CThis 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
RH itself depends on temperature, while the sensing element and electronics also have temperature coefficients. Compensation is therefore often required.
A protective filter and hygroscopic film need time to exchange moisture with the surrounding air. Fast process changes may be measured with delay.
The sensor may not follow exactly the same path when humidity rises as when it falls, creating a small history-dependent error.
Liquid water on the sensing element can produce a response very different from equilibrium water vapor and may require recovery time.
Dust, aerosols, chemicals, or nutrient mist can alter the exposed sensing film or protective membrane.
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:
- Compare the sensor against a known reference at several humidity points.
- Record both increasing- and decreasing-humidity runs to look for hysteresis.
- Estimate response time after a step change in humidity.
- Test alternative mounting locations inside the chamber.
- Check whether mist droplets contact the sensor directly.
- Record temperature at the same time as RH.
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
| Specification | Why it matters |
|---|---|
| RH operating range | The application must stay within the validated range, including startup and fault conditions. |
| Accuracy | Determines uncertainty around the reported RH value. |
| Resolution | Limits the smallest change visible to the controller or logging system. |
| Response / recovery time | Determines how quickly changing humidity can be tracked. |
| Temperature range | Affects both sensor survival and compensation quality. |
| Condensation tolerance | Critical for misting, greenhouse, HVAC, and high-RH environments. |
| Interface | Analog, I²C, one-wire-style proprietary digital, or another communication method affects integration. |