   if (!waterPumpIsOn && waterLevelStatus == "OK" && moistureThreshold > moistureSensorVal) {
     prevWatering = millis();
     waterPumpIsOn = true;
-    digitalWrite(WaterPump, HIGH);
+    digitalWrite(waterPumpPin, HIGH);
     Console.println("Watering started");
   }
 }

AirMeasurement am;

//===== For photoresistor =======================
boolean lightIsOn = false;
byte lightPercent;
const byte lightOnThreshold = 90;
const byte lightPin = A0;
const int lightMaxVal = 550;
const int lightMinVal = 6; 
int lightResistorVal;

//===== For hygrometer ==========================
byte moisturePercent;
const byte hygroPin = A1;
// todo - find right value for this
const int moistureMaxVal = 960;
const int moistureMinVal = 50; 
int moistureSensorVal;
int moistureThreshold = 1000; // <- made this up

//===== For water level sensor ===================
byte waterLevelPercent;
const byte waterSensorPin = A2;
// todo - find right value for this
const int waterLevelThreshold = 300; // <- made this up
int waterLevelVal;
int waterMaxVal = 310;
int waterMinVal = 90; 
String waterLevelStatus = "OK";

//===== For water pump ===========================
#define WaterPump 5
const byte waterPumpPin = A3;
boolean waterPumpIsOn = false;
unsigned long wateringSeconds = 61000;
unsigned long prevWatering = 0;

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

  readWaterLevelSensor();  
  
  outputEvent();

  // these happen every minute (or so)
  if (currentMillis - prevMinOneMillis > minOneInterval) {
    prevMinOneMillis = currentMillis;
