   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(pumpPin, LOW);
  }
  levelWasDown = (sensorValue>250);

  // change the analog out value:
  analogWrite(analogOutPin, int(receivedValue));

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