 }
 
 void switchLights() {
-  // todo - change the threshold to base100
   if (lightOnThreshold > lightResistorVal && !lightIsOn) {
     digitalWrite(LightSwitch, HIGH);
     lightIsOn = true;
   } 
-  // todo - change the threshold to base100
   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;

}

void readLightResistor() {
  lightResistorVal = analogRead(lightPin);
  lightPercent = map(lightResistorVal, lightMinVal, lightMaxVal, 0, 100);
}

void readMoistureSensor() {
  moistureSensorVal = analogRead(hygroPin);
  moisturePercent = map(moistureSensorVal, moistureMinVal, moistureMaxVal, 0, 100);
}

void readWaterLevelSensor() {
  int val = analogRead(waterSensorPin);
  waterLevelVal = map(val, waterMinVal, waterMaxVal, 0, 100);
  
  if (val < waterLevelThreshold) {
   waterLevelStatus = "LOW";
