This document describes a water level controller that uses an 8051 microcontroller. It monitors the level of an overhead tank using sensor probes connected to ports on the microcontroller. It automatically turns a water pump on when the tank level drops below a preset limit, and turns it off once the tank is full. It also checks the level in a sump tank and will not run the pump if the sump level is low.