 AirMeasurement am;
 
 //===== For photoresistor =======================
+boolean lightIsOn = false;
 byte lightPercent;
 const byte lightOnThreshold = 90;
 const byte lightPin = A0;
-boolean lightIsOn = false;
-int lightMaxVal = 550;
-int lightMinVal = 6; 
+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 moistureThreshold = 1000; // <- made this up
-int moistureMaxVal = 960;
-int moistureMinVal = 50; 
+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

String waterLevelStatus = "OK";

//===== For water pump ===========================
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
unsigned long prevMinOneMillis = 0;
unsigned long minOneInterval = 60000;
unsigned long prevMinFiveMillis = 0;
unsigned long minFiveInterval = 300000;

  my_output += ";MoistureValue:";               my_output += moistureSensorVal;
  my_output += ";ProbeTemperatureCelcius:";     my_output += sm.tempSoilC;  
  my_output += ";ProbeTemperatureFahrenheit:";  my_output += sm.tempSoilF;
  my_output += ";WaterLevelPercent:";           my_output += waterLevelPercent;
  my_output += ";WaterLevelValue:";             my_output += waterLevelVal;
  my_output += ";WaterPumptIsOn:";              my_output += waterPumpIsOn;
  
