   HDC.begin(HDC100X_TEMP_HUMI,HDC100X_14BIT,HDC100X_14BIT,DISABLE);
   TSL.begin();
   BMP.begin();
-  BMP.setOversampling(2);
-  Serial.println("done!");
-  Serial.println("Starting loop.");
+  BMP.setOversampling(3);
+  Serial.println(F("done!"));
+  Serial.println(F("Starting loop."));
   temperature = HDC.getTemp();
 }
 

  if (millis() - oldTime > postingInterval) {
    oldTime = millis();   
    //-----Pressure-----//
    Serial.println("Posting pressure");
    messTyp = 2;
    char result = BMP.startMeasurment();
    if(result!=0){
      delay(result);
      result = BMP.getTemperatureAndPressure(tempBaro,pressure);
      postObservation(pressure, PRESSURESENSOR_ID, SENSEBOX_ID); 
      Serial.print("Temp_baro = ");Serial.println(tempBaro,2);
      Serial.print("Pressure  = ");Serial.println(pressure,2);
    } else {
      Serial.print("Error: ");Serial.println((int)BMP.getError());
    }
    delay(2000); 
    //-----Humidity-----//
    Serial.println("Posting humidity");
    messTyp = 2;
    humidity = HDC.getHumi();
    Serial.print("Humidity = "); Serial.println(humidity);
    postObservation(humidity, HUMISENSOR_ID, SENSEBOX_ID); 
    delay(2000);
    //-----Temperature-----//
    Serial.println("Posting temperature");
    messTyp = 2;
    temperature = HDC.getTemp();
    //Serial.println(temperature,2);
    Serial.print("Temperature = ");Serial.println(temperature);
    postObservation(temperature, TEMPSENSOR_ID, SENSEBOX_ID); 
    delay(2000);  
    //-----Lux-----//
    Serial.println("Posting illuminance");
    messTyp = 1;
    lux = TSL.readLux();
    Serial.print("Illumi = "); Serial.println(lux);
    postObservation(lux, LUXSENSOR_ID, SENSEBOX_ID);
    delay(2000);
    //UV intensity
    messTyp = 1;
    uv = getUV();
    Serial.print("UV = "); Serial.println(uv);
    postObservation(uv, UVSENSOR_ID, SENSEBOX_ID);
  }
}

#include <Makerblog_TSL45315.h>
#include <SPI.h>
#include <Ethernet.h>
#include <avr/pgmspace.h>

//SenseBox ID
#define SENSEBOX_ID "5719c4037514d05c121e317c"
