     lcd.print(tank);lcd.print("gal  ");
     lcd.print(timedisplay);lcd.print("min  ");
     delay(20000);}
+    digitalWrite(air, LOW);
+}
+void thirtysecaeration(float airduration, int lvl){//duration in min check depth and keep air on and pumps off for time period
+  airduration=airduration*60*1000;
+  lcd.clear();
+  lcd.setCursor(0,0);
+  lcd.print("30Aeration ");
+  lcd.setBacklight(GREEN);
+  measurevol();
+  lcd.setCursor(0,1);
+  lcd.print(tank);
+  float starttime = millis();
+  delay(100);
+  while (((millis()-starttime)<airduration)&&(tank>lvl)){  //2 min
+    digitalWrite(air, HIGH);
+    delay(30000);
+    digitalWrite(air, LOW);
+    delay(30000);
+    delay(30000);
+    delay(30000);
+    delay(30000);
+    delay(30000);
+    delay(30000);
+    delay(30000);
+    delay(30000);
+
+    int timedisplay = round((airduration-(millis()-starttime))/60/1000);
+    measurevol();
+    lcd.setCursor(0,1);
+    lcd.print(tank);lcd.print("gal  ");
+    lcd.print(timedisplay);lcd.print("min  ");
+    //delay(20000);
+    }
     digitalWrite(air, LOW);
 }
 void settle(float duration, int lvl){//everything off just timer

}
void weekend(){
  aeration(15, 4);
  rest(45);
}
void normalsequence(){//10 hrs
  DateTime now = rtc.now();
  realstarttime = now.unixtime();
  fill(12,0);
  fill(25,1);
  now = rtc.now();
  delay(2000);
  aeration(60, 24);
  float current = now.unixtime();
  while (current-realstarttime<14400){
    aeration(1,24);
    now= rtc.now();
    current = now.unixtime();
  }
  delay(2000);
  settle(180, 24);
  delay(2000);

}



void fill(int lvl, int airadd){//check depth and fill until level is 25gal plus stir
  if (lvl<19){
