 //===== For hygrometer ==========================
 const byte hygroPin = A1;
 // todo - find right value for this
+// todo - change the threshold to base100
 const int moistureThreshold = 1000; // <- made this up
 int moistureSensorVal;
 
 //===== For water level sensor ===================
 const byte waterSensorPin = A2;
 // todo - find right value for this
+// todo - change the threshold to base100
 const int waterLevelThreshold = 300; // <- made this up
 int waterLevelVal;
 String waterLevelStatus = "OK";

}

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


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