     return 1; // indicate temp increase above threshold
   } else if (tempDiff < 0){
     return 2; // indicate temp decrease above threshold
-  } else {
-    return 0; // indicate normal reading
-  }
+  }
+  return 0; // indicate normal reading
 }
 
 // read soil sensor data

          dumpSerial();

          // send events to particle cloud used to trigger IFTTT push notification
          if (Time.hour() == PUBLISHEVENT_TIME_HOUR && publishEvents == true) {
            postSoilEventToParticle();
            publishEvents = false;
          }
          if (Time.hour() > PUBLISHEVENT_TIME_HOUR) {
            publishEvents = true;
          }
      }
    }

      return 1; // indicate soil is to low
    } else if (soilValue > SOIL_THRESHOLD_HIGH) {
      return 2; // indicate soil is to high
    }
    return 0; // indicate normal reading
}

void dumpSerial() {
