 
 */
 
+IRrecv irrecv(IR_receive_recv_PIN); // Receive on pin 6
 IRsend irsend;
-IRrecv irrecv(IR_receive_recv_PIN); // Receive on pin 6
 
 // ------------------------------------------
 int samplingTime = 280;

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

  irsend.sendLGAC(code, 28);
  delay(20);
  irrecv.enableIRIn(); // Start the receiver
 }

void ac_activate(int temperature, int air_flow)
{

// 0 : TOWER
// 1 : WALL

volatile int AC_POWER_ON    = 0;
// 0 : off
// 1 : on

