     dumpInfo(&results);
   }
 
-  if ((millis() - startMills) > 3000 ) {
+  if ((millis() - startMills) > 200 ) {
 
     digitalWrite(ledPower, LOW); // power on the LED
     delayMicroseconds(samplingTime);


void requestEvent()
{
  byte myArray[2];
  int sleepmodetosend ;

  if ( sleepmode == o_sleepmode ) {
    myArray[0] = (voMeasured >> 8 ) & 0xFF;
    myArray[1] = voMeasured & 0xFF;

    Wire.write(myArray, 2);
  }

  if ( sleepmode != o_sleepmode )  {

#include <IRremote.h>
#include <Wire.h>
#include <Average.h>

Average<float> ave1(4);
Average<float> ave2(4);

/*
 Sharp Optical Dust Sensor GP2Y1010AU0F
