 } SoilMeasurement;
 SoilMeasurement sm;
 
-//=====for Digital Thermo, Humidity Sensor=====
+//=====For Digital Thermo, Humidity Sensor=====
 #include "DHT.h"
 const byte dhtPin = 2;
 DHT myDHT(dhtPin, DHT11);
 
 typedef struct my_airmeasurement {
   byte humidityAir;
+  float heatIndex;
   float tempAirC;
   float tempAirF;
-  float heatIndex;
 } AirMeasurement;
 AirMeasurement am;
 
-//=====for keys, params========================
-#include "params.h"
-
-//=====for photoresistor=======================
+//=====For photoresistor=======================
+const byte lightOnThreshold = 90;
 const byte lightPin = A0;
+boolean lightIsOn = false;
 int lightResistorVal;
-boolean lightIsOn = false;
-const byte lightOnThreshold = 90;
 
 //=====for hygrometer==========================
 const byte hygroPin = A1;
-int moistureSensor;
-
-//=====these i am still thinking about=========
-String appId = "Plant01";
-String location = "Dinning Room Window";
-String waterLevelStatus = "OK";
+// todo - find right value for this
+const int moistureThreshold = 500; // <- made this up
+int moistureSensorVal;
+
+//=====for Water Level=========================
+const byte waterSensorPin = A2;
+// todo - find right value for this
+const int waterLevelThreshold = 400; // <- made this up
 boolean waterPumpIsOn = false;
+int waterLevelVal;
+String waterLevel = "OK";
 
 //=====for timed events, etc===================
 long prevMinOneMillis = 0;
 long minOneInterval = 60000;
+
 long prevMinFiveMillis = 0;
 long minFiveInterval = 300000;
 

    char c = myKeen.read();
    Console.print(c);
  }
  Console.println();

  Console.flush();
}


  
  readAirMeasurements();
  readSoilMeasurements();
  readLightResistor();
  readMoistureSensor();  
  readWaterLevelSensor();  
  
  outputEvent();
  
