     while (1);
   }
 
+  // declare Particle cloud variables
   Particle.variable("temperature", &temperature, DOUBLE);
   Particle.variable("pressure", &pressure, DOUBLE);
   Particle.variable("humidity", &humidity, DOUBLE);
+  Particle.variable("soil1", &soil1, INT);
 }
 
 void loop() {

void setup()
{
  pinMode(led, OUTPUT);
  Serial.begin(9600);

  if (!bme.begin()) {

  Serial.print(humidity);
  Serial.println(" %");

  Serial.print("Soil 1 = ");
  Serial.println(soil1);
}
