This document describes a microcontroller-based water-level controller and motor protector circuit that monitors the water level in an overhead tank and controls a pump motor accordingly. It uses an AT89C51 microcontroller along with sensors to detect the water level and turn the motor on or off to fill the tank. It also protects the motor from high/low voltages, power fluctuations, and dry running conditions using voltage monitoring circuitry. The circuit displays the system status and any faults on an LCD module. It is powered by a 12V supply from a step-down transformer and regulated to 5V for the microcontroller components.