 //===== For hygrometer ==========================
 const byte hygroPin = A1;
 // todo - find right value for this
-const int moistureThreshold = 500; // <- made this up
+const int moistureThreshold = 1000; // <- made this up
 int moistureSensorVal;
 
-//===== For water ===============================
+//===== For water level sensor ===================
 const byte waterSensorPin = A2;
 // todo - find right value for this
 const int waterLevelThreshold = 400; // <- made this up
+int waterLevelVal;
+
+//===== For water pump ===========================
 boolean waterPumpIsOn = false;
-int waterLevelVal;
 unsigned long wateringSeconds = 10000;
 unsigned long prevWatering = 0;
 String waterLevel = "OK";
 
 //===== For timed events =========================
-long prevMinOneMillis = 0;
-long minOneInterval = 60000;
-long prevMinFiveMillis = 0;
-long minFiveInterval = 300000;
-long prevHourTwelveMillis = 0;
-long hourTwelveInterval = 43200000;
+// 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;
+unsigned long prevHourTwelveMillis = 0;
+unsigned long hourTwelveInterval = 43200000;
 
 void setup() {
   pinMode(LightSwitch, OUTPUT);

} SoilMeasurement;
SoilMeasurement sm;

//===== For digital thermo, humidity sensor =====
#include "DHT.h"
const byte dhtPin = 2;
DHT myDHT(dhtPin, DHT11);

    prevMinOneMillis = currentMillis;
    
    sendToKeen();  
    waterPlantStarts();
  }
  
  // these happen every five minutes (or so)
