 //int slowsludge = 5;
 
 int x=0;
-float TimeToFill=60000;//300000;//5min
-float airtimer=60000;//600000;//10min
-//float partialemptytime=30000;//60000;//1min
-float decanttime=60000;//600000;//10min
+float TimeToFill=800000;//14.52min
+float airtimer=24000000;//400min
+float thirtysecairtime = 1800000;//30min 
+float decanttime=60000;//1min
 unsigned long timenow;
 
 void setup() {

  delay(7000);
}


void weekend(){
}

void normalsequence(){
  delay(2000);
  fillup();
  delay(2000);
  aeration();
  delay(2000);
  settlerest(60000);//3min
  delay(2000);
  decantdrain();
  delay(2000);
  rest(60000);//3min
}

void loop() {

  digitalWrite(decant, LOW);
      
}
void thirtysecaeration(){
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("30Aeration ");
  lcd.setBacklight(GREEN);
  unsigned long starttime = millis();
  delay(100);
  while (x==0){
      if ((millis()-starttime)>thirtysecairtime){//5min
       digitalWrite(air,LOW);
       x=1;
      }
      else if ((millis()-starttime)<thirtysecairtime){
       digitalWrite(air,HIGH);
       int timedisplay = round((thirtysecairtime-(millis()-starttime))/60/1000);
       lcd.setCursor(0,1);
       lcd.print(timedisplay);lcd.print("min  ");
       digitalWrite(air, HIGH);
    delay(30000);
    digitalWrite(air, LOW);
    delay(30000);
    delay(30000);
    delay(30000);
    delay(30000);
      }
      delay(200);
    }
  digitalWrite(air, LOW);
  digitalWrite(fill, LOW);
  digitalWrite(decant, LOW);
}
void rest(float resttime){//rest time in ms
  lcd.clear();
  lcd.setCursor(0,0);
