Humidity Sensors
Types
Humidity sensors can either contain just the humidity sensing component (which means they usually just have two leads), or they may also contain signal processing circuits. The ones which also contain circuitry have an analogue (usually 3 pin) or digital output (can have many pins, 8 is a common number).
Uses
Humidity sensors are commonly used in the following equipment:
- Air conditioning, heating and ventilation
- Refrigerators
- Industrial automation
- Asset and goods tracking
- Medical equipment (respiratory devices)
Relative Humidity
Relative humidity is defined as the ratio of the water vapour pressure to the saturation water vapour pressure, at the current gas temperature.
It is ratio of the actual amount of water in the air to the total amount it could when saturated.
Dew Point
The dew point is the point at which the atmosphere has to be cooled down too so that condensation starts to appear. The frost point is the dew point when the temperatures are below freezing.
The Magnus Equation
The Magnus equation is an approximation to calculate the dew point from the actual air temperature and relative humidity. It is a useful equation to use when you have a sensor IC which measures both temperature and relative humidity.
First we find an intermediary value called gamma ():
where:
= relative humidity of the air (as a percentage from 0-100%)
= temperature of air, in degrees Celsius
= constant
= constant
can then be substituted into the following equation to calculate the dew point temperature (in degrees Celsius):
The values of the constants , and can vary depending on the data set and method used to calculate them (this is an empirical formula). Common values for them are:
The following is a code example in C showing a function which converts temperature and relative humidity into a dew point, using the simple Magnus equation.
Examples
The Honeywell HIH-5030 (3.3V) or HIH-4030 (5.0V) analogue-output, 3-pin, SMD humidity sensors are a popular choice. They measure the full humidity range (0-100%), are easy to solder, and simple to interface too.