 boolean lastConnected = false;
 boolean uploadSuccess = true;
 String sensorSample;
-<<<<<<< HEAD:files/template.ino
-int sampleType = 1; //1=temp,2=humi,3=baro,4=light
-=======
 int sampleType = 1;
 int phenomenonCount = 5; //1=temp,2=humi,3=baro,4=noise,5=light
->>>>>>> d9865cb6c3dc6543253fc1c85805d10c0e4ef2d4:files/template_home/template_home_2014/template_home_2014.ino
 
 void setup(){
   Wire.begin();

EthernetClient client;

String currentSensorId = TEMPERATURESENSOR_ID;
<<<<<<< HEAD:files/template.ino
float temperature;
float humidity;
float pressure;
unsigned long  lux;
int analogNoise;
int uvValue;
=======
float temperature, humidity, pressure;
int analogNoise, analogLight;
>>>>>>> d9865cb6c3dc6543253fc1c85805d10c0e4ef2d4:files/template_home/template_home_2014/template_home_2014.ino

DHT dht(DHTPIN, DHTTYPE);
Barometer barometer;

        currentSensorId = NOISESENSOR_ID;
        break;
      case 5:
        analogLight = analogRead(LIGHTPIN);
        sensorSample = (String)analogLight;
        currentSensorId = LIGHTSENSOR_ID;
        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
