 void loop() {
   takeAndprocessReading();
 
-  delay(10000); //10 seconds
-  //delay(600000); //10 min
+  delay(msReadSensorDelay);
 }
 
 


  logger.info("soil dry");
  logger.info("buzzor toggle");
  buzzor.toggle(100);
  logger.info("buzzor toggle");
  logger.info("pump activate");
  waterPump.activate(2000);
  logger.info("pump deactivate");
  logger.info("waiting to take reading again");
  delay(15000); //15 sec
  takeAndprocessReading();
}

DigitalPin buzzor(3);
Logger logger(9600);

//600000
#define msReadSensorDelay 10000
#define msBuzzorBeforeWateringDelay 100
#define msWateringActiveDelay 2000
#define msRetryAfterWateringDelay 15000
#define moistLevel 550


void setup() {

}
