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

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

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