
DIY Microcontroller Projects for Hobbyists
By :

In this section, we'll review the DHT11 sensor module. This section also describes what the sensor pins are, and how to connect them to a microcontroller board. The DHT11 is an easy-to-use, practical, and low-cost sensor module that measures temperature within a range of 0 to 50 degrees Celsius, with an error rate of +-2%. It also measures environmental relative humidity (RH) within a range of 20% to 90%, with an accuracy of +-5%. These values can change a bit, depending on the sensor module's manufacturers. The next section describes what RH is, an environmental value that is read by the DHT11 sensor.
Relative humidity is based on a combination of water vapor and the temperature of the environment. It is a ratio of the amount of water vapor present in the air at a certain temperature, expressed as a percentage. Generally, the amount of water vapor has a higher RH in cool air than...