Design of Smart Home Security System Based on the Esp32 Microcontroller and the Internet of Things
Abstract
Home security requires an automated system capable of protecting occupants from burglary and gas leakage hazards. This study aims to design and develop a Smart Home security system based on the ESP32 microcontroller and the Internet of Things (IoT) by implementing the Mamdani fuzzy logic method to determine gas leakage conditions. The research employed an experimental approach consisting of system design, implementation, functional testing, and integration testing. The proposed system integrates an ESP32 as the main controller, RFID and keypad for dual authentication, an MQ-2 sensor for gas detection, a servo motor for door locking, a buzzer as an alarm, and the MQTT protocol for smartphone-based monitoring. The test results indicate that all system components functioned as intended. The MQ-2 sensor successfully detected gas leakage and processed gas concentration data using Mamdani fuzzy logic to produce adaptive gas condition decisions, while MQTT enabled real-time system monitoring. The developed system effectively enhances door access security and provides early detection of potential gas leaks.