 
 
 void setup() {
+
+    digitalWrite(A5, HIGH);         // power pin for water sensor
+
     lastMotion = 0;
     lastPublish = 0;
 


unsigned long lastMotion = 0;
unsigned long lastPublish = 0;
time_t lastIdleCheckin = 0;

#define PUBLISH_DELAY (60 * 1000)




    float latitude = convertDegMinToDecDeg(GPS.latitude);
    float longitude = convertDegMinToDecDeg(GPS.longitude);

    if ((latitude != 0) && (longitude != 0)) {
        String trkJsonLoc = String("{")
            + "\"c_lat\":" + String(convertDegMinToDecDeg(GPS.latitude))
            + ",\"c_lng\":" + String(convertDegMinToDecDeg(GPS.longitude))
            + ",\"c_unc\":" + String(GPS.fixquality)
            + ",\"c_alt\":" + String(GPS.altitude)
            + "}";
         Particle.publish("trk/loc", trkJsonLoc, 60, PRIVATE);
     }


    float batteryVoltage = fuel.getVCell();
