     measurevol();
     lcd.setCursor(0,1);
   lcd.print(tank);
-  delay(7000);}
+  delay(10000);}
     digitalWrite(decantpump, LOW);
 }
 void rest(float longt){ //everything off except maybe stir

int depth = A0;
int x=0;
float starttime;
float begintime;
float tank;
float airtimer;

  aeration(15, 4);
  rest(45);
}
void normalsequence(){//24 hrs
  DateTime now = rtc.now();
  realstarttime = now.unixtime();
  loading(7);//12 times for 12 hours
  loading(9);
  loading(11);
  loading(13);
  loading(15);
  loading(16);
  loading(17);
  loading(18);
  loading(20);
  loading(21);
  loading(23);
  loading(25);
  now = rtc.now();
  delay(2000);
  aeration(240, 24);
  delay(2000);
  settle(60, 24);
  delay(2000);
  skim(60);
  delay(2000);
  settle(120,24);
  delay(2000);
  decant(6);
  delay(2000);
  now= rtc.now();
  float current = now.unixtime();
  while (current-realstarttime<86400){
    rest(1);
    now= rtc.now();
    current = now.unixtime();
  }
  delay(2000);
}
void loading(int h){//takes 1 hr to fill before continuing
   DateTime now = rtc.now();
  begintime = now.unixtime();
   measurevol();
   fill(h);
   periodicaeration(15);
   now = rtc.now();
   float current = now.unixtime();
    while (current-begintime<3600){//1hr chill
    now = rtc.now();
    current = now.unixtime();
    delay(15000);
    lcd.setCursor(0,0);
    lcd.print("Loading Delay       ");
    int timedisplay = round((3600-(current-begintime))/60);
    measurevol();
    lcd.setCursor(0,1);
    lcd.print(tank);lcd.print("gal  ");
    lcd.print(timedisplay);
    lcd.print("min  ");
  }
}
