 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
+int moistureSensorVal;
+
+//===== For moisture readings ====================
+// todo - find right value for these
 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;
+int waterLevelVal;
+String waterLevelStatus = "OK";
+
+//===== For light switch =========================
+const byte lightSwitchPin = 4;
+const byte lightOnThreshold = 90;
+const int lightMaxVal = 550;
+const int lightMinVal = 6; 
+boolean lightIsOn = false;
+
+//===== For water pump ===========================
+const byte waterPumpPin = A3;
 // 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;
+int waterMaxVal = 310;
+int waterMinVal = 90; 
 
 //===== For timed events =========================
 // todo - timed events use regule marers for 1 min 1 hour etc and divide blah

}

void readSoilMeasurements() {

  byte data[12];
  byte addr[8];


unsigned long hourTwelveInterval = 43200000;

void setup() {
  pinMode(lightSwitchPin, OUTPUT);
  pinMode(waterPumpPin, OUTPUT);

  myDHT.begin();
  Bridge.begin();
