Introduction
The humidity sensor is used to detect the humidity levels in the atmosphere and output relevant information. The main difference between a humidity sensor and moisture sensor is that the former is a measurement of water in gas state while the later is used to detect the content of water in liquid state. This sensor is designed for a wide range of applications, such as industrial process control systems, storage and warehouses, climate control for green-houses, meteorological applications, office automation, room comfort control, automotive cabin air control, and so on.
Specification
- Operating Voltage: 3V-5V
- Connector: PH2.0-3P
- Product Dimension: 22*26(mm)/1.02×0.87"
Pinout
Label | Name | Description |
---|---|---|
1 | GND | Ground |
2 | VCC | Power Input |
3 | A | Signal Input(Analog) |
Usage Description
Humidity sensors are able to detect the amount of water vapor in air. Connect all parts as the diagram shows below. Power up, and read the humidity data displayed on the OLED display module.
We can also connect the humidity sensor with other output modules to realize different functions.
- The strength of the output signal increases as the humidity rises.
Principle
Humidity sensors are mainly used to detect the humidity level in the air. The inductive component of the sensor adopts special dielectric material whose dielectric constant varies when it is subjected to change in humidity.
Application
(1) Indoor Humidity Comparison of sunny days and rainy days
Description: detect the indoor humidity on sunny days and rainy days, and use the OLED module to display the readings, then analyze the humidity difference.
Components: humidity sensor, mainboard-1IO, OLED module
Connection:
(2) Grain Bin Humidity Monitoring
Description: temperature and humidity are very essential for grain storage and these two factors are closely linked together. Normally, the grain moisture content should be no more than 12% so that the temperature can be maintained in a stable range. When the moisture content is over 20%, the seed begins to germinate and breathe, as a result, the temperature will rise accordingly, and when it exceeds 22°C, storage problems may occur. Hence, it is necessary to set a humidity and temperature system for the grain bin. When the temperature is over 22°C, turn on the fan and the LED light, and the buzzer starts making sound. When the moisture content is more than 20%, the LED lights up and the buzzer makes sound.
Components: air humidity sensor, temperature sensor, buzzer, fan, LED, logical module-or, threshold module, splitter module, power mainboard-3IO
Connection:
(3) Plant Incubator
Description: make a plant incubator, monitor the soil temperature, temperature inside the incubator and air humidity. If there is one parameter exceeding the preset range, the LED lights up and the buzzer starts making sound.
Components: soil humidity sensor, air humidity sensor, temperature sensor, buzzer module, LED module, micro:bit, BOSON expansion board
Connection:
Execution Process:
Init the variable: set the variable "environmental indicator" to 0;
Measure the soil humidity: if the soil humidity is less than 200 or more than 800, set the "environmental indicator" to 1;
Measure the temperature: call the function to get the temperature, if it is less than 10 or over 40, set the "environmental indicator" to 1;
Measure the air humidity: if the air humidity is less than 60%, set the "environmental indicator" to 1;
Determine if the environment is appropriate for plant:if the environment indicator is 1, the current environment is not suitable for plant growth, the LED lights up and the buzzer starts making sound for 5s; otherwise, do nothing.
Mind+ Example Program:
MackCode Example Program:
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page