TY - JOUR T1 - MQTT in Action: Building Reliable and Scalable Home Automation Systems AU - Salama, Maysaa AU - Raslen, Bilal PY - 2024 DA - December Y2 - 2024 DO - 10.35377/saucis...1504759 JF - Sakarya University Journal of Computer and Information Sciences JO - SAUCIS PB - Sakarya University WT - DergiPark SN - 2636-8129 SP - 494 EP - 509 VL - 7 IS - 3 LA - en AB - This study presents the development and implementation of an MQTT-based home automation system, emphasizing its reliability, scalability, and efficiency. The system integrates the ESP8266 microcontroller with various sensors, including IR, temperature, DHT11, sound, and vibration sensors. Leveraging the lightweight MQTT protocol for real-time data transmission and PostgreSQL for robust data storage, the system monitors environmental conditions, detects specific events, and performs appropriate actions. Performance tests indicate the system maintains low response times, high data accuracy, and exceptional reliability, making it a viable solution for modern smart homes. The findings suggest that the system enhances security, optimizes energy usage, and improves overall comfort for homeowners. Future research will focus on enhancing the security of the MQTT protocol against spoofing attacks through the integration of AI for threat detection and blockchain technology for enhanced data security. KW - MQTT KW - Home Automation KW - IoT KW - ESP8266 KW - Sensors KW - Real-time Monitoring KW - Data Transmission KW - Reliability KW - Scalability KW - PostgreSQL CR - Institute of Electrical and Electronics Engineers, 2019 54th International Universities Power Engineering Conference (UPEC) : proceedings : 3-6 September 2019, Bucharest, Romania. CR - M. F. Usmani, “MQTT Protocol for the IoT.” International Journal of Internet of Things, vol. 12, no. 3, pp. 45-50, September 2020. DOI: 10.1000/xyz123. CR - IEEE Communications Society and Institute of Electrical and Electronics Engineers, 2018 10th International Conference on Communication Systems & Networks (COMSNETS) : 3-7 Jan. 2018. CR - Saveetha Engineering College and Institute of Electrical and Electronics Engineers, IEEE International Conference on Power, Control, Signals and Instrumentation Engineering (ICPCSI) - 2017 : 21st & 22nd September 2017. CR - B. N. Alhasnawi, B. H. Jasim, Z. A. S. A. Rahman, and P. Siano, “A novel robust smart energy management and demand reduction for smart homes based on internet of energy,” Sensors, vol. 21, no. 14, Jul. 2021, doi: 10.3390/s21144756. CR - M. Esposito, A. Belli, L. Palma, and P. Pierleoni, “Design and Implementation of a Framework for Smart Home Automation Based on Cellular IoT, MQTT, and Serverless Functions,” Sensors, vol. 23, no. 9, May 2023, doi: 10.3390/s23094459. CR - V. Seoane, C. Garcia-Rubio, F. Almenares, and C. Campo, “Performance evaluation of CoAP and MQTT with security support for IoT environments,” Computer Networks, vol. 197, Oct. 2021, doi: 10.1016/j.comnet.2021.108338. CR - T. Magara and Y. Zhou, “Internet of Things (IoT) of Smart Homes: Privacy and Security,” Journal of Electrical and Computer Engineering, vol. 2024, 2024, doi: 10.1155/2024/7716956. CR - C. B. Gemirter, Ş. Çenturca, and Ş. Baydere, “A Comparative Evaluation of AMQP, MQTT and HTTP Protocols Using Real-Time Public Smart City Data,” in Proceedings - 6th International Conference on Computer Science and Engineering, UBMK 2021, Institute of Electrical and Electronics Engineers Inc., 2021, pp. 542–547. doi: 10.1109/UBMK52708.2021.9559032. CR - M. Singh, M. A. Rajan, V. L. Shivraj, and P. Balamuralidhar, “Secure MQTT for Internet of Things (IoT),” in Proceedings - 2015 5th International Conference on Communication Systems and Network Technologies, CSNT 2015, Institute of Electrical and Electronics Engineers Inc., Sep. 2015, pp. 746–751. doi: 10.1109/CSNT.2015.16. CR - M. A. Khan et al., “A deep learning-based intrusion detection system for mqtt enabled iot,” Sensors, vol. 21, no. 21. MDPI, Nov. 01, 2021. doi: 10.3390/s21217016. CR - V. Kumar, N. Malik, J. Singla, N. Z. Jhanjhi, F. Amsaad, and A. Razaque, “Light Weight Authentication Scheme for Smart Home IoT Devices,” Cryptography, vol. 6, no. 3, Sep. 2022, doi: 10.3390/cryptography6030037. CR - S. Shapsough, M. Takrouri, R. Dhaouadi, and I. Zualkernan, “An MQTT-Based Scalable Architecture for Remote Monitoring and Control of Large-Scale Solar Photovoltaic Systems,” in Lecture Notes of the Institute for Computer Sciences, Social-Informatics and Telecommunications Engineering, LNICST, Springer Verlag, 2019, pp. 57–67. doi: 10.1007/978-3-030-05928-6_6. CR - IEEE Communications Society. Internet of Things Emerging Technologies Initiatives, IEEE Computational Intelligence Society, Institute of Electrical and Electronics Engineers, and S. Internet of Things Week (2017 : Geneva, GIoTS2017 : Global Internet of Things Summit : 2017 proceedings papers : CICG, Geneva, June 6-9, 2017. CR - F. Morgado-Dias, F. Quintal, Madeira Interactive Technologies Institute, Universidade da Madeira, Institute of Knowledge and Development, and Institute of Electrical and Electronics Engineers, Energy and Sustainability in Small Developing Economies 2018 : July 9-12, 2018, Madeira - Portugal. CR - I. Froiz-Míguez, T. M. Fernández-Caramés, P. Fraga-Lamas, and L. Castedo, “Design, implementation and practical evaluation of an iot home automation system for fog computing applications based on MQTT and ZigBee-WiFi sensor nodes,” Sensors (Switzerland), vol. 18, no. 8, Aug. 2018, doi: 10.3390/s18082660. UR - https://doi.org/10.35377/saucis...1504759 L1 - https://dergipark.org.tr/en/download/article-file/4021056 ER -