 }
 void weekend(){
   aeration(15, 4);
-  rest(45);
+  rest(43);
 }
 void normalsequence(){//10 hrs
   DateTime now = rtc.now();
   realstarttime = now.unixtime();
-  fill(12,0);
-  fill(25,1);
+  fillplusair(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();
-  }
+  aeration(120,24);//thirtysecaeration(60, 24);
   delay(2000);
   settle(180, 24);
   delay(2000);

    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

  loading(23);
  loading(25);
}

void loop() {
  // put your main code here, to run repeatedly:
  DateTime now = rtc.now();
  //daysOfTheWeek[now.dayOfTheWeek()
  float current = now.unixtime();
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print(daysOfTheWeek[now.dayOfTheWeek()]);//"loop        ");
  delay(100);
  lcd.setCursor(0,1);
  lcd.print(tank);
  while (x<1){
   //RASfill(7);//normalsequence();//decant(4);//loading();
    x++;}
    //write conditions for running sequence here and add functions
  if (now.dayOfTheWeek()== 1){//"Monday"
    if (now.hour()>9 && now.hour()<11){normalsequence();}}
  if (now.dayOfTheWeek()== 2){//"Tuesday"
    if (now.hour()>6 && now.hour()<8){normalsequence();}}
  if (now.dayOfTheWeek()== 3){//"Wednesday"
    if (now.hour()>6 && now.hour()<8){normalsequence();}}//normalsequence();}
  if (now.dayOfTheWeek()== 4){//"thursday"
    if (now.hour()>6 && now.hour()<8){normalsequence();}}//normalsequence();}
  if (now.dayOfTheWeek()== 5){//"Friday"
    if (now.hour()>6 && now.hour()<8){normalsequence();}}
  if (now.dayOfTheWeek()== 6){//"Saturday"
    if (now.hour()>6 && now.hour()<8){fillplusair(25,1);}}
  if (now.dayOfTheWeek()== 0){//"Sunday"
    weekend();}
  delay(20000);
  weekend();}
