 String floatToString(float number, int precision)
 {
   String stringNumber = "";
-  //int prec;
-  //only temperature (case 1) has a decimal place
-  //if (sampleType == 1) prec = 1; else prec = 0;
   char tempChar[10];
   dtostrf(number, 1, precision, tempChar);
   stringNumber += tempChar;

      sampleType = 1;
    }else sampleType++;
  }
  /* You need to make sure to clean up after yourself or the CC3000 can freak out */
  /* the next time your try to connect ... */
  Serial.println(F("\n\nDisconnecting"));
//  cc3000.disconnect();

 delay(1000);
}

  Adafruit_CC3000_Client client = cc3000.connectTCP(ip, 8000);
  
  if (client.connected()) {
    client.print("POST /boxes/");
    client.print(SENSEBOX_ID);
    client.print("/"); 
