Microcontroller › AVR › water level controller › while(1){read adc();if
July 25, 2011 at 5:49 am
#6515
dagakshay
Participant
while(1)
{
read adc();
if (adc<lower levl)
{
while(adc<upper level)
{
motor is on;
read adc();
}
motor is off;
}
else
motor is off;
}