Water level control using basic AND & NOT gates