 
 IRsend irsend;
 
+/*
+ Standalone Sketch to use with a Arduino UNO and a
+ Sharp Optical Dust Sensor GP2Y1010AU0F
+*/
+  
+// ------------------------------------------  
+int measurePin = A6; //Connect dust sensor to Arduino A6 pin
+int ledPower = 2;   //Connect 3 led driver pins of dust sensor to Arduino D2
+
+// A6  : DUST IN
+// D2  : DUST OUT
+// 
+// D3  : IR OUT
+// 
+// D6  : IR IN
+// D7  : OUT GND
+// D8  : OUT VCC
+// 
+// D12 : OUT GND
+// ------------------------------------------
+
+
+int samplingTime = 280;
+int deltaTime = 40;
+int sleepTime = 9680;
+
+int voMeasured = 0;
+float calcVoltage = 0;
+float dustDensity = 0;
+
+// ------------------------------------------
+// IR
 const int AC_TYPE  = 0;
 // 0 : TOWER
 // 1 : WALL


// IR

/*
 Standalone Sketch to use with a Arduino UNO and a
 Sharp Optical Dust Sensor GP2Y1010AU0F
*/
  
int measurePin = A6; //Connect dust sensor to Arduino A0 pin
int ledPower = 2;   //Connect 3 led driver pins of dust sensor to Arduino D2
  
int samplingTime = 280;
int deltaTime = 40;
int sleepTime = 9680;

int voMeasured = 0;
float calcVoltage = 0;
float dustDensity = 0;

// IR

void ac_send_code(unsigned long code)
{
  Serial.print("code to send : ");

// 2 : high
// 3 : rotate

// IR
const int AC_FLOW_TOWER[4] = {0, 4, 6, 12};
const int AC_FLOW_WALL[4]  = {0, 2, 4, 5};

