   logger.info("taking reading: ");
   int moistureReading = moistureSensor.takeReading();
   logger.info(moistureReading);
-  if (moistureReading < 550)
+  if (moistureReading < moistLevel)
   {
     logger.info("soil moist");
     return;


  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();
}

void loop() {
  takeAndprocessReading();

  delay(msReadSensorDelay);
}


