   else
     delay(300);
   Wire.requestFrom(address, 20);
-  switch (Wire.read()) {
+  int val=Wire.read();
+  switch (val) {
     case 1:
-      Serial.println("Success");
+      //Serial.println("Success");
       break;
     case 2:
-      Serial.println("Failed");
+      //Serial.println("Failed");
       return String("Failed");
       break;
     case 254:
-      Serial.println("Pending");
+      //Serial.println("Pending");
       break;
     case 255:
-      Serial.println("No Data");
+      //Serial.println("No Data");
       break;
+    default:
+      //Serial.printlnf("Invalid response %d",val);
+      return String("Failed");
   }
 
   while(Wire.available()) {

#include "DS18B20.h"
#include "SparkFunMAX17043.h"

#define TEMP_SENSOR D6
#define PH_ADDRESS 99
#define ORP_ADDRESS 98
#define SAMPLE_INTERVAL 2500

}

int check_calibrated(String args) {
  //Serial.println(executeRequest(PH_ADDRESS,"Cal,?"));
  //Serial.println(executeRequest(PH_ADDRESS,"Status"));
  //Serial.println(executeRequest(ORP_ADDRESS,"Cal,?"));
  //Serial.println(executeRequest(ORP_ADDRESS,"Status"));
  return 0;
}

