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

// todo - find right value for these
const int moistureMaxVal = 255;
const int moistureMinVal = 982; 
int moistureThreshold = 1000; // <- made this up

//===== For water level sensor ===================
byte waterLevelPercent;
const byte waterSensorPin = A2;
int waterLevelVal;
String waterLevelStatus = "OK";

//===== For light switch =========================
const byte lightSwitchPin = 4;
const byte lightOnThreshold = 90;
const int lightMaxVal = 550;  
const int lightMinVal = 0; 
boolean lightIsOn = false;

//===== For water pump ===========================
const byte waterPumpPin = A3;
// todo - find right value for this
const int waterLevelThreshold = 300; // <- made this up    
boolean waterPumpIsOn = false;
unsigned long wateringSeconds = 61000;
unsigned long prevWatering = 0;
int waterMaxVal = 690;
int waterMinVal = 0;   

//===== For timed events =========================
// todo - timed events use regule marers for 1 min 1 hour etc and divide blah

}

void switchLights() {
  if (lightOnThreshold > lightPercent && !lightIsOn) {
    digitalWrite(lightSwitchPin, HIGH);
    lightIsOn = true;
  } 
  if (lightOnThreshold < lightPercent && lightIsOn) {
    digitalWrite(lightSwitchPin, LOW);
    lightIsOn = false;
  }   
