 }
 
 int postToParticle() {
-  char publishString[128];
   sprintf(publishString,"{\"status\": %d, \"temp\": %0.2f, \"pressure\": %0.2f, \"humidity\": %0.2f, \"soil1\": %u, \"soil2\": %u, \"soil3\": %u}",
     currentSensorStatus, temperature, pressure, humidity, soil1, soil2, soil3);
   Particle.publish("sensor",publishString);


// main status
int lastSensorStatus = 0, currentSensorStatus = 0;

// BME280 sensor
Adafruit_BME280 bme;


  Serial.print("Soil 3 = ");
  Serial.println(soil3);
}
