 #include "DS18B20.h"
 #include "SparkFunMAX17043.h"
 
-#define TEMP_SENSOR D6
+#define POWER D6
+#define TEMP_SENSOR D5
 #define PH_ADDRESS 99
 #define ORP_ADDRESS 98
 #define SAMPLE_INTERVAL 2500

  else
    delay(300);
  Wire.requestFrom(address, 20);
  switch (Wire.read()) {
    case 1:
      Serial.println("Success");
      break;
    case 2:
      Serial.println("Failed");
      return String("Failed");
      break;
    case 254:
      Serial.println("Pending");
      break;
    case 255:
      Serial.println("No Data");
      break;
  }

  while(Wire.available()) {

    Particle.publish("waterdata", water_data(), PRIVATE);
    if(soc <= 10)
      sleepInterval = 60 * 15;
    else if(soc <= 20)
      sleepInterval = 60 * 10;
    else
      sleepInterval = 60 * 5;
    nextSleepTime = millis() + (sleepInterval * 1000) + WAKE_INTERVAL;
    executeRequest(PH_ADDRESS,"Sleep");
    executeRequest(ORP_ADDRESS,"Sleep");
    digitalWrite(POWER, LOW);
    System.sleep(SLEEP_MODE_DEEP,sleepInterval);
  }
}
