-//DOING: including documentation
-//libraries...
-#include "Wire.h"      //for I2C communication
-#include "DHT.h"       //for dht sensor
-#include <SPI.h>       //for Serial communication (with the SD card)
+ /******************************************************************************
+Arduair project
+Fabian Gutierrez @ Universidad Pontificia Bolivariana
+https://github.com/fega/arduair
+
+Arduair project source code.
+
+# Wiring Scheme.
+## Arduino
+Pin   Feature
+2     LED Red
+3     LED Green
+4     WiFiShield Pin
+5     DHT Pin
+7     WifiShield Pin
+8     Shinyei Pin 1
+9     Shinyei Pin 2 //TODO: check what pin is
+10    SD/SS Pin
+S1    Ze-Co  Sensor
+S2    Ze-NO2 Sensor
+S3    Ze-SO2 Sensor
+
+## Shinyei PPD42ns
+1     Ground
+2     P2 OutPut
+3     Input 5v
+4     P1 Output
+******************************************************************************/
+//libraries
+#include "Wire.h"      //I2C communication
+#include "DHT.h"       //DHT sensor
+#include <SPI.h>       //Serial communication (with the SD card)
 #include <SD.h>        //SD card Library
 #include <SFE_BMP180.h>//Sparkfun BMP180 pressure Sensor Library
 #include <SparkFunTSL2561.h>//light sensor library SparkFun TSL2561 Breakout
 #include <WiFi.h>      //wifi shield Library
 #include <Event.h>
-#include <Timer.h>     //arduino timer library
-
-#define DS1307_ADDRESS 0x68 //clock pin
-#define DHTPIN 7       //DHT pin
+
+//Default configuration
+#define RED_LED_PIN 2
+#define GREEN_LED_PIN 3
+#define DS1307_ADDRESS 0x68 //clock ADRESS
+#define DHTPIN 20
 #define DHTTYPE DHT11  //dht type
-#define server "arduair.herokuapp.com/test/"    // website address
-#define WIFIPIN 4      //Wifi shield ss pin
-#define SDPIN 10       //Sd ss pin
-
-File myFile;//Defining one file  class
-
-char ssid[] = "yourNetwork"; //  your network SSID (name)
-char pass[] = "secretPassword";    // your network password (use for WPA, or use as key for WEP)
-String device,password;
-int status = WL_IDLE_STATUS;
-
-WiFiClient client;
-float pm10,pm25;
-int second, minute,hour,weekDay,monthDay,month,year;
-
-
+#define WIFIPIN 4
+#define SDPIN 10
+#define SHINYEI_P1 8
+#define SHINYEI_P2 9
+#define CO  1 //
+#define NO2 2
+#define SO2 3
+unsigned int zeCo=19;
+unsigned int zeNO2=20;
+unsigned int zeSO2=21;
+bool zeAvailable=true;
+unsigned int zeCounter;    // Ze counter of meausures
+
+//Constructors
+File myFile;              //FIle constructor
+WiFiClient client;        //WiFiClient Constructor
 DHT dht(DHTPIN, DHTTYPE); //DHT constructor
 SFE_BMP180 bmp;           //bmp constructor
 SFE_TSL2561 light;        //TSL2561 constructor
-Timer t;
-bool zeAvailable=true;
-unsigned long zeCo,zeNO2,zeSO2; //ze sensors serial port
-unsigned int zeCounter;// Ze counter of meausures
+
+//Wifi and device config
+char ssid[] = "FABIAN"; //  your network SSID (name)
+char pass[] = "63856199";    // your network password (use for WPA, or use as key for WEP)
+char server[] = "arduair.herokuapp.com/test/";
+char device[] = "DeviceName";
+char password[] = "devicePassword";
+int status = WL_IDLE_STATUS;
+
+//Global variables for measuring
+float pm10,pm25;
+float p,h,t,l;
+float co,o3,so2,no2;
+unsigned int second, minute,hour,weekDay,monthDay,month,year;
+
 /**
  * Arduair configuration initialitation
  */
 void setup() {
+  digitalWrite(GREEN_LED_PIN,HIGH);
   Serial.begin(9600);
   Serial1.begin(9600); //ZE CO-sensor
   Serial2.begin(9600); //ZE NO2-sensor

  double vol25 = (4/3)*pi*pow(r25,3);
  double mass25 = density*vol25;
  float concSmall = (PM25count)*K*mass25;
}
/*//////////////////////////////////////////////////////////////////
 BMP180 Pressure Sensor
//////////////////////////////////////////////////////////////////*/
float readPressure(){
 char state;
 double T,P,p0,a;
  // Loop here getting pressure readings every 10 seconds.

          //Serial.print("absolute pressure: ");
          Serial.print(P*0.750061561303,2);
          //Serial.println(" mmHg");
          return P;
        }
        //else Serial.println("error retrieving pressure measurement\n");
