 elapsedMillis lastPost;
 
 const unsigned int PUBLISHEVENT_TIME_HOUR = 15; // send events ~ 3pm
-boolean publishEvents = true;
+boolean particleEventPublished = true;
 
 void setup() {
   Serial.begin(9600);
   Time.zone(1);
 
+  // declare GPIO pins
   pinMode(led, OUTPUT);
   for (unsigned int i = 0; i < sizeof(soilSensors); i++) {
     pinMode(soilSensors[i].sensor, INPUT);
     pinMode(soilSensors[i].power, OUTPUT);
   }
 
+  // init BME280 sensor
   if (!bme.begin()) {
     Serial.println("Could not find a valid BME280 sensor, check wiring!");
     while (1);

  Particle.variable("soil1", &soil1, INT);
  Particle.variable("soil2", &soil2, INT);
  Particle.variable("soil3", &soil3, INT);
}

void loop() {

          dumpSerial();

          // send events to particle cloud used to trigger IFTTT push notification
          if (Time.hour() == PUBLISHEVENT_TIME_HOUR && particleEventPublished == true) {
            postSoilEventToParticle();
            particleEventPublished = false; // only publish once
          }
          if (Time.hour() > PUBLISHEVENT_TIME_HOUR) {
            particleEventPublished = true; // reset publish status
          }
      }
    }
