       }
     }
 
-    if (lastPost > POST_RATE || sensorStatus > 1) {
+    // update cloud
+    if (lastPost > POST_RATE || sensorStatus > 0) {
       while (postToPhant(sensorStatus) <= 0) { // publish to phant
         Serial.println("Phant post failed. Trying again.");
 				// Delay 1s, so we don't flood the server. Little delay's allow the Photon time

}

// read soil sensor data
int readSoilSensor(int soilSensor) {
    unsigned int val = 0;
    digitalWrite(led, HIGH);

  return phant.particlePost();
}

// read BME280 sensor data
byte readBMESensor() {
  double currentTemperature = 0;
