      lcd.setCursor(0,1);
   lcd.print(tank);lcd.print("gal  ");
   lcd.print(timedisplay);lcd.print("min  ");
-  //digitalWrite(stir, HIGH);
     delay(1000);}
     digitalWrite(stir, LOW);
 }

  digitalWrite(en1, HIGH);
}
}
void weekend(){
  aeration(5, 4);
  rest(50);
}
void normalsequence(){//10 hrs
  DateTime now = rtc.now();

  lcd.setCursor(0,1);
  lcd.print(tank);
  while (x<1){
   //sludgeremoval();
   //aeration(60,17);
   //settle(50, 19);//delay(1000);
   //decant(6);//loading();
    x++;}
    //write conditions for running sequence here and add functions
  if (now.dayOfTheWeek()== 1){//"Monday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}
  if (now.dayOfTheWeek()== 2){//"Tuesday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}
  if (now.dayOfTheWeek()== 3){//"Wednesday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}
  if (now.dayOfTheWeek()== 4){//"thursday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}
  if (now.dayOfTheWeek()== 5){//"Friday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}
  if (now.dayOfTheWeek()== 6){//"Saturday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}//fillplusair(21,1);thirtysecaeration(100,10);}}
  if (now.dayOfTheWeek()== 0){//"Sunday"
    if (now.hour()>4 && now.hour()<6){normalsequence();}}//weekend();}
  delay(20000);
  weekend();}
