     
     waterPlants();
   }
+  
+  if (waterPumpIsOn && currentMillis >= prevWatering + 10000) {
+    waterPumpIsOn = false;
+    Console.println("Watering stopped");    
+  }
 }
 
 void waterPlants() {
-//  if (moistureThreshold < moistureSensorVal && !waterPumpIsOn && waterLevel == "OK") {  
-//    if (currentMillis - prevSecTenMillis >= secTenInterval) {
-//      // digitalWrite(WaterPump, LOW);
-//      waterPumpIsOn = true;
-//    }
-//    // todo - water for ten seconds at a time and no more than twice a day?!?
-//    // digitalWrite(WaterPump, HIGH);
-//    waterPumpIsOn = true;
-//  }
-//  if (moistureThreshold > moistureSensorVal && waterPumpIsOn) {}    
+
+  // todo - implement all the sensors (water level, moisture)
+  // todo - figure out how to send a water pump is on event for log even thou its off at time.
+  // todo - leave a trail that pump ran for event log
+  // todo - cleanup vars
+  
+  // todo - timed events use regule marers for 1 min 1 hour etc and divide blah
+  
+  prevWatering = millis();
+  if (!waterPumpIsOn) {
+    waterPumpIsOn = true;
+    Console.println("Watering started");
+  }
+  
+
 }
 
 void switchLights() {

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

    prevMinOneMillis = currentMillis;
    
    sendToKeen();  
    waterPlants();
  }
  
  // these happen every five minutes (or so)
