          digitalWrite(analogOutPin, HIGH);   // turn the flow on (HIGH is the voltage level)
          dropCounter++;
        }
-       delay(900);               // wait for a second
+       delay(1100);               // wait for a second
        
    }
 }

  sensorValue = analogRead(analogInPin);
  Serial.print("Sensor: ");
  Serial.println(sensorValue);
  levelIsDown = sensorValue>250;
  
  if (dropCounter>150) //This should normaly never happen
  {

      if (!freeze)
      {
        digitalWrite(pumpPin, HIGH);
        Serial.println("Pump");
        delay(1000);
        digitalWrite(pumpPin, LOW);
        delay(2000);
        dropCounter = 0; //Reset the drop counter
      }
    }
