Performance Analysis Comparison of DHT11, DHT22 and DS18B20 As Temperature Measurement
Performance Analysis Comparison of DHT11, DHT22 and DS18B20 As Temperature Measurement
Banten, Indonesia
1 Introduction
measurement resulted an average error value of 4.69% for LM35 sensor, 3.12% for
DHT11, 1.96% for DHT22, and 1.6% for DS18B20.
Based on the description above, this study aims to analyze the performance and
accuracy of temperature measurements from the DHT11, DHT22 and DS18B20 sensors
through laboratory calibration tests to obtain uncertainty values and laboratory correction
values and conduct field tests to determine sensor performance, by comparing with
operational termometer in Automatic Weather Station.
2 Method
The research methods conducted in this study are system design and system testing based
on quantitative analysis. The design of this system consists of system block diagrams,
system flow diagrams, system circuits.
process, the temperature sensors DHT11, DHT22, and DS18B20 then retrieved tem-
perature data. The temperature measurement that has been taken by the sensor will be
read and collected by the microcontroller and the results will be displayed on the LCD.
Furthermore, the output data on the LCD is set using one-minute intervals, then the
one-minute interval data will be stored to the micro-SD card.
Based on the Table 2, the lowest uncertainty value is 0.17 °C at DS18B20 sen-
sor. Meanwhile, the DHT11 and DHT22 sensor measured the uncertainty value slightly
higher at 0.18 °C. It means that the DS18B20 overall can measure the temperature bet-
ter compared to DHT11 and DHT22. Mathematical model of the comparison between
the temperature measurements from three sensors, DHT11, DHT22, and DS18B20 com-
pared to the standard sensor temperature measurements is shown in Fig. 4. Calculation of
the determination coefficient between sensor measurement and standard tools is needed
to find out how many data points are located on the regression line, so that it can be used
as an indicator of the level of accuracy of the measurement results [13].
Based on Fig. 4, the calculation of the sensor determination coefficient shows that
the DS18B20 sensor has a better correlation value of 0.999985, followed by the DHT22
sensor of 0.999976, and DHT11 of 0.999098.
Table 2. The three sensors correction and uncertainty. All values are in degree of celcius (°C).
of the sensors was aimed to determine the performance of the sensor in conducting
temperature data acquisition for about 24 h. Field testing is carried out by comparing the
temperature data from the system with the temperature of the operational equipment,
named Automatic Weather Station (AWS).
Performance Analysis Comparison of DHT11, DHT22 and DS18B20 43
Fig. 4. Determination coefficient between the tested sensors and standardized sensor
4 Conclusion
A comparison test of temperature sensors accuracy was conducted on three sensors
such as DHT11, DHT22, and DS18B20. There are two methods used to determine
the performance of the sensors, laboratory calibration and field test. In the Laboratory
Calibration Method, the sensors were put into the chamber calibrator and tested with
three setpoints, they are 20 °C, 30 °C, and 40 °C, and obtained the correction value
of each setpoint and uncertainty value. The results depict that DS18B20 performed
with smallest uncertainty value at 0.17 °C followed by the DHT11 and DHT22 sensor at
0.18 °C of uncertainty value for both sensors. This value related with the correlation value
at 0.999985, 0.999976, and 0.999098 for DS18B20, DHT22, and DHT11, respectively.
Meanwhile, the field testing is carried out for 24 h of observation and compared with the
Automatic Weather Station (AWS) data. The results of the two methods show that the
three sensors have different correction values and uncertainty values with the DS18B20
sensor has the highest accuracy which performed 99.05% in its accuracy, followed by
DHT22 and DHT11 at 98.15% and 97.19%, respectively.
Acknowledgment. I would like to thanks to my lecturer, Dr. Santoso Soekirno, which inspire
and support the research. Big thanks to Meteorology, Climatology, and Geophysics Agency in
providing the calibration in certified laboratory calibration so we can conduct the test.
References
1. World Meteorological Organization, Measurement of Meteorological Variables, 2014.
2. K. P. Kuria, O. O. Robinson, and M. M. Gabriel, Monitoring Temperature and Humidity using
Arduino Nano and Module-DHT11 Sensor with Real Time DS3231 Data Logger and LCD
Display, International Journal of Engineering Research and Technology 9 (12), 416–422.
3. A. Akila, P. Shalini, Food Grain Storage Management System, International Journal of
Engineering and Technology, 7 (2.31), 170–173
4. M. S. Novelan and M. Amin, Monitoring System for Temperature and Humidity Measure-
ment with DHT11 Sensor Using NodeMCU, International Journal of Innovative Science and
Research Technology 5 (10), 123–128
5. A. Sujiwa, and S. Rochman, Pengembangan Sistem Kontrol Serta Monitoring Suhu dan
Volume Air Berbasis Web Pada Perangkat Desalinasi Air Laut (Seminar Nasional Hasil Riset
dan Pengabdian Ke-II), 2019.
6. W. A. Prayitno, A. Muttaqin, and D. Syauqy, Sistem Monitoring Suhu, Kelembaban,
dan Pengendali Penyiraman Tanaman Hidroponik menggunakan Blynk Android, Jurnal
Pengembangan Teknologi Informasi dan Ilmu Komputer 1(4), 292–297.
7. F. A. Deswar, and R. Pradana, Monitoring Suhu Pada Ruang Server Menggunakan Wemos
D1 R1 Berbasis Internet of Things (IoT), Technologia 12(1), 25–32.
8. D. Wijanarko, and S. Hasanah, Monitoring Suhu dan Kelembaban Menggunakan SMS
Gateway Pada Proses Fermentasi Tempe Secara Otomatis Berbasis Mikrokontroler, Jurnal
Informatika Polinema 4(1), 49–56.
9. F. Puspasari, T. P. Satya, U. Y. Oktiawati, I. Fahrurrozi, and H. Prisyanti, Analisis Akurasi
Sistem Sensor DHT22 berbasis Arduino terhadap Thermohygrometer Standar, Jurnal Fisika
dan Aplikasinya 16(1), 40–45.
Performance Analysis Comparison of DHT11, DHT22 and DS18B20 45
Open Access This chapter is licensed under the terms of the Creative Commons Attribution-
NonCommercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/),
which permits any noncommercial use, sharing, adaptation, distribution and reproduction in any
medium or format, as long as you give appropriate credit to the original author(s) and the source,
provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter’s Creative
Commons license, unless indicated otherwise in a credit line to the material. If material is not
included in the chapter’s Creative Commons license and your intended use is not permitted by
statutory regulation or exceeds the permitted use, you will need to obtain permission directly from
the copyright holder.