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

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

  lcd.setCursor(0,1);
  lcd.print(tank);
  int starttime = millis();
  while ((millis()-starttime)<60000){//1min
    digitalWrite(skimmer, HIGH);}
    digitalWrite(skimmer, LOW);
}
