   lcd.setCursor(0,1);
   lcd.print(tank);
   int starttime = millis();
- while ((millis()-starttime)<10000){
-    digitalWrite(decantpump, HIGH);}
+ while (tank>7){
+    digitalWrite(decantpump, HIGH);
+    measurevol();}
     digitalWrite(decantpump, LOW);
 }
 void rest(){ //everything off except maybe stir

  lcd.setCursor(0,1);
  lcd.print(tank);
  int starttime = millis();
   while ((millis()-starttime)<10000){
    digitalWrite(fillpump, HIGH);}
    digitalWrite(fillpump, LOW);
}
void aeration(){//check depth and keep air on and pumps off for time period

  lcd.setCursor(0,1);
  lcd.print(tank);
  int starttime = millis();
  while (((millis()-starttime)<120000)&&(tank>23)){  //2 min
    digitalWrite(air, HIGH);
    measurevol();
    delay(20000);}
    digitalWrite(air, LOW);
}
void settle(){//everything off just timer
