Real-Time IoT Temperature Monitoring Using Xiaomi Mijia BLE, ESP32, MQTT, and EMQX
DOI:
https://doi.org/10.30871/jaee.v10i1.12012Keywords:
BLE–MQTT Bridge, ESP32, IoT, Real-Time Temperature Monitoring, Xiaomi MijiaAbstract
This paper proposes a low-cost IoT-based real-time temperature and humidity monitoring system as a Bluetooth Low Energy (BLE) to MQTT bridge using an ESP32 microcontroller, Xiaomi Mijia LYWSD03MMC sensor, and EMQX broker. The key novelty of this work lies in the quantification of end-to-end communication performance of a BLE–Wi-Fi–MQTT bridge architecture using commercial off-the-shelf components. Five repeated measurement trials were conducted to evaluate system performance. Results show a mean end-to-end latency of 318 ms (standard deviation: 16,4 ms, max: 342 ms), a packet delivery ratio of 99,6%, and a sensor accuracy of RMSE=0,22°C against a calibrated digital reference thermometer. The system operated continuously for 48 hours with 99,6% uptime and a single automatic reset. Compared to HTTP-based counterparts, the proposed BLE–MQTT bridge achieves 36,6% lower latency. These results confirm the feasibility of integrating proprietary BLE sensors into mainstream MQTT-based IoT platforms using a lightweight and replicable architecture.
Downloads
References
[1] V. A. Orfanos, S. D. Kaminaris, P. Papageorgas, D. Piromalis, and D. Kandris, “A Comprehensive Review of IoT Networking Technologies for Smart Home Automation Applications,” Journal of Sensor and Actuator Networks, vol. 12, no. 2, p. 30, Apr. 2023, doi: 10.3390/jsan12020030.
[2] A. H. Wirasapta, T. D. Pamungkas, and S. S. Mishi, “Simulation-Based Analysis of Packet Scheduling Strategies and Traffic Load Effects on Network QoS,” Energy Insights, vol. 1, no. 2, pp. 49–58, Apr. 2026, doi: 10.59562/ei.v1i2.11311.
[3] D. Arifianto, A. Sulistyono, and A. Nilogiri, “Sistem Monitoring Suhu Dan Kelembaban Ruangan Server Berbasis Arduino Menggunakan Metode Fuzzy Logic Dengan Buzzer Dan Telegram Bot Sebagai Notifikasi,” JUSTINDO (Jurnal Sistem dan Teknologi Informasi Indonesia), vol. 7, no. 1, pp. 67–75, Mar. 2022, doi: 10.32528/justindo.v7i1.5135.
[4] U. Ristian, I. Ruslianto, and K. Sari, “Sistem Monitoring Smart Greenhouse pada Lahan Terbatas Berbasis Internet of Things (IoT),” Jurnal Edukasi dan Penelitian Informatika (JEPIN), vol. 8, no. 1, p. 87, Apr. 2022, doi: 10.26418/jp.v8i1.52770.
[5] Md. M. Islam, S. Nooruddin, F. Karray, and G. Muhammad, “Internet of Things: Device Capabilities, Architectures, Protocols, and Smart Applications in Healthcare Domain,” IEEE Internet Things J., vol. 10, no. 4, pp. 3611–3641, Feb. 2023, doi: 10.1109/JIOT.2022.3228795.
[6] I. Petrescu, E. Niculae, V. Vulturescu, A. Dimitrescu, and L. M. Ungureanu, “Transport and Application Layer Protocols for IoT: Comprehensive Review,” Technologies (Basel)., vol. 13, no. 12, p. 583, Dec. 2025, doi: 10.3390/technologies13120583.
[7] P. Fauzan Prasetyo Eka Putra, M. Amir Mahmud, and R. Paradina, “Comparing the Performance of LoRaWAN and MQTT Protocols for IoT Sensor Networks,” Journal of Information and Technology, vol. 6, no. 2, 2024, doi: 10.60083/jidt.v6i2.565.
[8] M. F. Zulkarnaen, Aliy Nauval Hanafi, and Mohammad Taufan Asri Zaen, “Rekayasa SmartHome System Berbasis Internet of Things,” Infotek: Jurnal Informatika dan Teknologi, vol. 7, no. 2, pp. 552–562, Jul. 2024, doi: 10.29408/jit.v7i2.26545.
[9] A. A. Al Sarfini and D. Irawan, “Sistem Kontrol Jarak Jauh Plc Menggunakan Esp32 Berbasis Iot,” Jurnal Amplifier: Jurnal Ilmiah Bidang Teknik Elektro dan Komputer, vol. 14, no. 1, pp. 51–55, May 2024, doi: 10.33369/jamplifier.v14i1.33484.
[10] J. O. Christopher, M. Resquites, M. A. Parrocho, N. Vinegas, D. R. Vinyl, and H. Oquiño, “IoT-Based Temperature Monitoring and Automatic Fan Control Using ESP32,” IRE Journals, vol. 7, no. 5, pp. 35–44, 2023.
[11] A. P. Wirawan and H. Nugroho, “Perancangan Node Sensor Nirkabel BLE Bertenaga Baterai menggunakan ESP32 untuk Aplikasi Pertanian Cerdas,” Telekontran: Jurnal Ilmiah Telekomunikasi, Kendali dan Elektronika Terapan, vol. 11, no. 1, pp. 12–22, May 2023, doi: 10.34010/telekontran.v11i1.9607.
[12] K. F. Sumartono and Y. T. Samuel, “Implementation of Internet of Things (IoT) System at PT XXX using the MQTT system,” Jurnal TeIKa, vol. 14, no. 2, pp. 173–184, 2024.
[13] A. Sabo, H. O. Suleiman, Y. Dahiru, N. D. Jatau, A. Yusuf, and A. T. Chikodi, “Development and Implementation of an ESP32 IOT-Based Smart Grid for Enhanced Energy Efficiency and Management,” European Journal of Theoretical and Applied Sciences, vol. 2, no. 3, pp. 565–576, May 2024, doi: 10.59324/ejtas.2024.2(3).43.
[14] MicroPython Team, “MicroPython Documentation.” [Online]. Available: https://micropython.org/
[15] Dodi Yudo Setyawan, Nurfiana, Lia Rosmalia, Melia Gripin Setiawati, and Retno Dwi Handayani, “Kalibrasi Sensor Suhu Udara, Kelembaban dan pH Tanah Menggunakan Metode Linear regression,” Jurnal TEKNIKA, 2024.
[16] Y. Im and M. Lim, “E-MQTT: End-to-End Synchronous and Asynchronous Communication Mechanisms in MQTT Protocol,” Applied Sciences, vol. 13, no. 22, p. 12419, Nov. 2023, doi: 10.3390/app132212419.
[17] S. Yuan, “Review of Root-Mean-Square Error Calculation Methods for Large Deployable Mesh Reflectors,” International Journal of Aerospace Engineering, vol. 2022, pp. 1–18, Aug. 2022, doi: 10.1155/2022/5352146.
[18] C. D’Ortona, D. Tarchi, and C. Raffaelli, “Open-Source MQTT-Based End-to-End IoT System for Smart City Scenarios,” Future Internet, vol. 14, no. 2, p. 57, Feb. 2022, doi: 10.3390/fi14020057.
[19] I. Wardhana et al., “Rancang Bangun Alat Pengukur Suhu Real Time Laboratorium Menggunakan Protokol MQTT Berbasis Internet of Things,” Jurnal Teori dan Aplikasi Fisika, vol. 09, no. 01, pp. 39–46, 2021.
[20] F. Dewanta, B. Y. Yustiarini, and B. Indrakusumo Radityo Harsritanto, “A study of secure communication scheme in MQTT: TLS vs AES cryptography,” Jurnal INFOTEL (Informatics, Telecommunication, and Electronics), vol. 14, no. 4, pp. 269–276, Nov. 2022, doi: 10.20895/infotel.v14i4.807.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
Open Access Policy
This journal provides immediate open access to its content on the principle that making research freely available to the public supports a greater global exchange of knowledge. Its free availability on the public internet, permitting any users to read, download, copy, distribute, print, search, or link to the full texts of these articles, crawl them for indexing, pass them as data to software, or use them for any other lawful purpose, without financial, legal, or technical barriers other than those inseparable from gaining access to the internet itself.










