     o_r = r ;
   }
 
-  delay(100);
-
+  
 }
 
 void requestEvent()
-{ 
+{
   byte myArray[2];
   myArray[0] = (voMeasured >> 8 ) & 0xFF;
   myArray[1] = voMeasured & 0xFF;


void loop()
{
  digitalWrite(ledPower, LOW); // power on the LED
  delayMicroseconds(samplingTime);
  
  voMeasured = analogRead(measurePin); // read the dust value
  
  delayMicroseconds(deltaTime);
  digitalWrite(ledPower, HIGH); // turn the LED off
  delayMicroseconds(sleepTime);

// ------------------------------------------
/* test
  ac_activate(25, 1);
  delay(5000);
  ac_activate(27, 0);
  delay(5000);
*/
  
  if ( r != o_r) {

    /*

}

// IR
long dumpInfo (decode_results *results)
{
   // Check if the buffer overflowed
  if (results->overflow) {
    Serial.println("IR code too long. Edit IRremoteInt.h and increase RAWLEN");
    return 0;
  }
  
  if ( results->bits > 0 && results->bits == 32 ) {
    return results->value;;
  }
}



void setup()
{
  Serial.begin(38400);
  startMills = millis();
  Serial.println("Starting dust Sensor");
  pinMode(ledPower, OUTPUT);

  pinMode(IR_receive_VCC_PIN, OUTPUT);
  pinMode(IR_receive_GND_PIN, OUTPUT);
  digitalWrite(IR_receive_VCC_PIN, HIGH);
  digitalWrite(IR_receive_GND_PIN, LOW);

  irrecv.enableIRIn(); // Start the receiver

  Wire.begin(2);                // join i2c bus with address #2
  Wire.onRequest(requestEvent); // register event
  Wire.onReceive(receiveEvent);
