This research presents AutoCasa, a smart home automation application designed to enhance home security and optimize remote control of household electrical appliances. Implemented using the ESP8266 microcontroller, a relay module, a Passive Infrared (PIR) sensor, and a Light Dependent Resistor (LDR) sensor, AutoCasa integrates with the Blynk IoT platform to enable users to manage devices such as lights, fans, and air conditioners via internet-connected devices. The PIR sensor bolsters security by detecting unauthorized movement at night and triggering alarms, while the LDR sensor automates outdoor lighting for energy efficiency. AutoCasa demonstrates an efficient, user-friendly approach to smart home automation, leveraging IoT technology to improve convenience, security, and sustainability.