This document describes a home security and automation system that uses a microcontroller to control and monitor various functions. The system has two main sections: home automation and home security. The home automation section controls the water pump based on tank and pond water levels and timers. It also controls garden watering and porch lighting schedules. The home security section detects intruders on four sides using sensors, monitors the area with a rotating camera, detects door breaking, and includes an electronic siren and telephone dialer. The heart of the project is an AT89C51 microcontroller that handles all the functions.