The DF Robot DHT11 module measures temperature and relative humidity and sends the sampled data digitally to the Kookaberry.
The DHT11 is a very adequate performer and is considerably more popular than the slightly better specified and slightly more expensive DHT22 module. The blue DHT11 module is shown on the left in the pictures below.
- Voltage range: 3.3-5 V
- Temperature range :0-50 °C error of ± 2 °C
- Humidity :20-90% RH ± 5% RH error
- Sampling Rate: One reading every second (1Hz)
The two modules can be used interchangeably in practical applications. The SenseDHT app detects which DHT module has been connected.
[The following comparison and description of the two modules is taken from an excellent How to Mechatronics tutorial]
The DHT22 is the more expensive version which obviously has better specifications. Its temperature measuring range is from -40 to +125 degrees Celsius with +-0.5 degrees accuracy, while the DHT11 temperature range is from 0 to 50 degrees Celsius with +-2 degrees accuracy. Also the DHT22 sensor has better humidity measuring range, from 0 to 100% with 2-5% accuracy, while the DHT11 humidity range is from 20 to 80% with 5% accuracy.
There are two specification where the DHT11 is better than the DHT22. That’s the sampling rate which for the DHT11 is 1Hz or one reading every second, while the DHT22 sampling rate is 0,5Hz or one reading every two seconds and also the DHT11 has smaller body size. The operating voltage of both sensors is from 3 to 5 volts, while the max current used when measuring is 2.5mA.
How they work
They consist of a humidity sensing component, a NTC temperature sensor (or thermistor) and an IC on the back side of the sensor. The term “NTC” means “Negative Temperature Coefficient”, which means that the resistance decreases with increase of the temperature. A thermistor is a variable resistor that changes its resistance with change of the temperature.
For measuring humidity they use the humidity sensing component which has two electrodes with moisture holding substrate between them. So as the humidity changes, the conductivity of the substrate changes or the resistance between these electrodes changes. This change in resistance is measured and processed by the IC which makes it ready to be read by a microcontroller.
For measuring temperature, these sensors use a NTC temperature sensor. These sensors are made by sintering of semiconductive materials such as ceramics or polymers in order to provide larger changes in the resistance with just small changes in temperature.
Each sensor module contains an 8-bit microcontroller which samples the analogue resistive changes from the two sensors; calibrates them from coefficients held in its One Time Programmable (OTP) memory; and sends them to the Kookaberry as precisely timed digital signals. The code required to convert these digital signals from the DHT11/22 back into temperature and RH values is part of the algorithms written for specific Kookaberry apps