   digitalWrite(WIFIPIN,HIGH); //active wifishield
   digitalWrite(SDPIN,LOW); //inactive SD
   wifiBegin();
+  winsenBegin();
   arduairSetup();
-  digitalWrite(GREEN_LED_PIN,LOW);
-}
-/**
- * Arduair measuring cycle, it control all measuring cycle and ends writing the
- * results in a SD card and sending a request to the server
- * the measuring order is:
- * 2) 30 s :   measuring PM10 and PM2.5.
- * 3) 30 s :   measuring O3
- * 4) 30 s :   measuring light, humidity, temperature and Pressure
- * 5) 1 s :   detach Winsen sensor interrups (to avoid unnespected results during SD writing and http request)
- * 6) 1 m :   writing in the SD and senging the recuest
- * 7) 1 s :   clear variables
- * Also, asynchronously, Arduair handles the interrupt for the Winsen sensors,
- * thats comes every second per sensor.
+  digitalWrite(GREEN_LED_PIN,LOW); // Setup Light Off
+}
+/**
+* Arduair measuring cycle, it control all measuring cycle and ends writing the
+* results in an SD card and sending a request to the server
+* the measuring order is:
+* 1) 30 s :   measuring PM10 and PM2.5.
+* 2) 30 s :   measuring O3
+* 3) 30 s :   measuring light, humidity, temperature and Pressure
+* 4) 1 s :   Detach Winsen sensor interrupts (to avoid unexpected results during SD writing and HTTP request)
+* 5) 1 m :   writing in the SD and sending the request
+* 6) 1 s :   clear variables
+* Also, asynchronously, Arduair handles the interrupt for the Winsen sensors,
+* that comes every second per sensor.
  *
  */
 void loop() {
-  //2
-  pmRead();
-  //3
-  mq131Read();
-  //4
-  meteorologyRead();
-  //5
-  winsenRead(CO);
+
+  pmRead();          //1
+  mq131Read();       //2
+  meteorologyRead(); //3
+  winsenRead(CO);    //4
   winsenRead(NO2);
   winsenRead(SO2);
-  //6
-  getDate();
+  getDate(DS1307_ADDRESS);         //5
   tableWrite();
   request(h,t,p,l,co,so2,no2);
+  //6
 }
 /**
  * Perform a request to the given server variable. in the form:

    Serial.print(" lux: ");
    Serial.print(lux);

    if (good) l=lux; else l="undefined";
    return l;
  }
}

 * Reads Temperature from DHT
 */
float temperatureRead(){
  return dht.readTemperature();
}
/**
 * Reads Temperature from DHT
 */
float humidityRead(){
  return dht.readHumidity();
}
/**
 * Convert binary coded decimal to normal decimal numbers
