   for (byte thisByte = 0; thisByte < 4; thisByte++) {
     // print the value of each byte of the IP address:
     Serial.print(Ethernet.localIP()[thisByte], DEC);
-    Serial.print("."); 
+    Serial.print(".");
   }
   Serial.println();
   barometer.init();

        currentSensorId = NOISESENSOR_ID;
        break;
      case 5:
<<<<<<< HEAD:files/template.ino
        TSL2561.getLux();
        lux = TSL2561.calculateLux(0,0,1);
        sensorSample = (String)lux;
        currentSensorId = LIGHTSENSOR_ID;
        break;
      case 6:
        uvValue = analogRead(UVPIN);
        sensorSample = (String)calcUVIndex(uvValue);
        currentSensorId = UVSENSOR_ID;
=======
        analogLight = analogRead(LIGHTPIN);
        sensorSample = (String)analogLight;
        currentSensorId = LIGHTSENSOR_ID;
>>>>>>> d9865cb6c3dc6543253fc1c85805d10c0e4ef2d4:files/template_home/template_home_2014/template_home_2014.ino
        break;
    }
  }
  // if you're not already connected, and 60 seconds have passed since
  // your last connection, then connect again and send data: 
  uploadSuccess = false;
  if(!client.connected() && (millis() - lastConnectionTime > postingInterval)) {
    Serial.println("-----------------------------------");
    Serial.print("Connecting and posting sensor sample (case ");
    Serial.print(sampleType);
    Serial.print(")...");
    Serial.println(); 
    postObservation(sensorSample, currentSensorId, SENSEBOX_ID);
  }
  // store the state of the connection for next time through the loop

    Serial.println();
    Serial.println("...stopping client!");
    client.stop();
  }
  //If last upload was successful, switch case to select the next sensor
  if (uploadSuccess){
    Serial.println();
