The proliferation of the Internet of Things (IoT) has fundamentally transformed residential living,
paving the way for intelligent home automation systems that significantly enhance comfort,
security, and energy efficiency. This paper presents the detailed design, implementation, and
testing of a comprehensive Multi-Feature IoT-Based Smart Window system. The system is
engineered for autonomous operation and remote user control, addressing key challenges such as
energy loss, security vulnerabilities, and manual inconvenience associated with traditional
windows. At the core of the system is an ESP32 microcontroller, selected for its robust dual-core
processing capabilities and integrated Wi-Fi/Bluetooth connectivity, which facilitates seamless
IoT integration. Key functionalities developed include remote control via a dedicated mobile
application and popular voice assistants (Amazon Alexa/Google Assistant), an automatic rain-
sensing closing mechanism to prevent water ingress, and ambient air quality monitoring using an
MQ-135 gas sensor to safeguard indoor air quality. A 0.96-inch OLED display provides real-time
visual feedback on critical parameters such as temperature, humidity, air quality index, and system
operational status. The actuation is precisely handled by a 12V DC worm gear motor, chosen for
its inherent self-locking property that ensures the window remains securely in any position without
continuous power consumption, thereby enhancing safety and energy conservation. The
implemented prototype demonstrates a practical, cost-effective, and highly efficient solution for
modern smart homes, successfully merging user convenience with proactive environmental
responsiveness.