   } else if (waterPumpIsOn && moistureThreshold < moistureSensorVal) {
     waterPumpIsOn = false;
     Console.println("Watering stopped");
-  } else if (waterPumpIsOn && waterLevel == "LOW") {
+  } else if (waterPumpIsOn && waterLevelStatus == "LOW") {
     waterPumpIsOn = false;
     Console.println("Watering stopped");
   }  


void waterPlantStarts() {
  // todo - figure out how to send a water pump is on event for log even thou its off at time.
  if (!waterPumpIsOn && waterLevel == "OK" && moistureThreshold > moistureSensorVal) {
    prevWatering = millis();
    waterPumpIsOn = true;
    Console.println("Watering started");

  waterLevelVal = analogRead(waterSensorPin);
  
  if (waterLevelVal < waterLevelThreshold) {
   waterLevelStatus = "LOW";
  } else {
   waterLevelStatus = "OK";
  }    
}

