Journal On Dht11 and Arduino
Journal On Dht11 and Arduino
ABSTRACT
This paper discusses the implementation of a temperature measurement system using the DHT11 sensor and Arduino
microcontroller. The system is designed for simplicity and cost-effectiveness, making it ideal for applications such as home
automation, weather monitoring, and educational purposes. The DHT11 sensor provides reliable temperature and humidity
data, which is processed and displayed using an Arduino. The paper covers the hardware setup, programming approach, and
system accuracy. Experimental results demonstrate the system's performance in varying environmental conditions, along with
an analysis of its limitations.
Keywords: DHT11, Arduino, Temperature Measurement, Sensor Interface, Microcontroller
1. INTRODUCTION
Temperature measurement is critical in a wide range of applications, from weather forecasting to industrial monitoring.
The need for cost-effective and reliable temperature sensors has led to the integration of microcontrollers like Arduino
with sensors such as the DHT11. The DHT11 sensor is widely known for its simplicity and efficiency in measuring
temperature and humidity, while Arduino provides a flexible platform for data acquisition and processing. This paper
aims to present a practical approach for setting up a temperature measurement system using the DHT11 sensor and
Arduino. The project is suitable for beginners, hobbyists, and researchers who require a simple yet functional system for
real-time temperature monitoring.
2. METHODOLOGY
2.1 Hardware Components
The DHT11 sensor and Arduino Uno microcontroller form the core of the system. The DHT11 sensor is capable of
measuring temperature in the range of 0°C to 50°C with an accuracy of ±2°C, which is sufficient for basic applications. The
Arduino Uno serves as the controller to read the sensor's data and display it.
● ARDUINO
Arduino is a new open source hardware and software system. It has to take attention of a large technology design
and community at affordable cost, which increases its use with advanced technology. Arduino hardware is a
motherboard for making interaction between objects and suitable computer programming IDE (Integrated
Development Environment).
Fig1.Arduino
● DHT11
This module features a humidity and temperature complex with a calibrated digital signal output. The DHT11
sensor module is a combined module for sensing humidity and temperature which gives a calibrated digital output
signal. DHT11 gives us a very precise value of humidity and temperature and ensures high reliability and long term
stability. This sensor has a resistive type humidity measurement component and NTC type temperature measurement
component with an 8-bit microcontroller inbuilt which has a fast response and is cost effective and available in 4-pin
single row package.
Fig2. DHT11
The DHT11 module works on serial communication i.e. single wire communication. This module sends data in the
form of a pulse train of a specific time period. Before sending data to Arduino it needs some initialization command
with a time delay. And the whole process time is about 4ms. The single-wire serial interface makes system
integration quick and easy. Its small size, low power consumption and up-to-20 meter signal transmission make it
the best choice for various applications, including those most demanding ones. The component is a 4-pin single row
pin package. It is convenient to connect and special packages can be provided according to users’ request.
#include "DHT.h"
#define DHTPIN 2 // Pin to which DHT11 is connected
#define DHTTYPE DHT11 // DHT11 sensor
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600);
dht.begin();
}
void loop() {
delay(2000);
float temperature = dht.readTemperature();
if (isnan(temperature)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
}
The average error was found to be within the sensor's specified accuracy of ±2°C. However, due to the sensor's
limited range, it is not suitable for extreme temperature measurements or applications requiring high precision.
0 24.5
6 23.8
12 25.2
18 24.9
24 24.3
4. CONCLUSION
This proposed system can provide a convenient method for effective monitoring of temperature and humidity in real time.
This system is compact to an extent and cost effective when compared to prices of instruments used to measure the
environmental factors. From the above analysis, it is ensured that the nested wired systems can be replaced by the wireless
sensor networks to get accurate data as well as to avoid many hazardous issues.
5. REFERENCES
● N. H. A. Aziz, W. N. W. Muhamad, N. A. Wahab, A. J. Alias, A. T. Hashim, and R. Mustafa, "Real time monitoring
critical parameters in tissue culture growth room with SMS alert system," in Intelligent Systems, Modelling and
Simulation (ISMS), 2010 International Conference on, 2010, pp. 339- 343.
● E. Parrish and T. Hickey, "A Temperature Monitoring System for Use on Normal Newborn Infants,"
Instrumentation and Measurement, IEEE Transactions on, vol. 21, pp. 59-60, 1972.
● L. Ruiz-Garcia, P. Barreiro, and J. Robla, "Performance of ZigBee-based wireless sensor nodes for real-time
monitoring of fruit logistics," Journal of Food Engineering, vol. 87, pp. 405-415, 2008.
● N. Zarka, I. Al-Houshi, and M. Akhkobek, "Temperature control via sms," in Information and Communication
Technologies, 2006. ICTTA'06. 2nd, 2006, pp. 2678-2683.
● R. K. Megalingam, V. Radhakrishnan, D. K. M. Unnikrishnan, D. C. Jacob, and A. K. Sudhakaran, "Autonomous
Smart Server Guard for advanced safety measure using wireless mobile technology," in Mechanical and Electrical
Technology (ICMET), 2010 2nd International Conference on, 2010, pp. 654-658.
● S. J. Brown, "Remote health monitoring and maintenance system," ed: Google Patents, 2001.
● http://www.ardumotive.com/iot-wifi-temp-andhumidity.html