 
 // Photo interrupter is also the wakeup for the system
 #define PHOTO_INTERRUPTER_PIN_1 2
-//#define PHOTO_INTERRUPTER_PIN_2 null
+//#define PHOTO_INTERRUPTER_PIN_2 3
 
 const int PHOTO_INTERRUPTER_PINS[] = { PHOTO_INTERRUPTER_PIN_1 };
 

int PIStates[] = { 1 };
int lastStates[] = { 1 };

int pelletCount[] = 0;

// Stepper motor with shield test
//Adafruit_MotorShield gMotorShield = Adafruit_MotorShield();

    Serial.println(timeElapsed);
    timecounter(timeElapsed);
    logData();
    pelletCount[inputNum]++;
    Serial.println(F("It did work"));
    clearDisplay();
    delay(2); // allow a very short delay for display response
    setDisplayValues(pelletCount[inputNum]);
    lastStates[inputNum] = PIStates[inputNum];
  }
  else if (PIStates[inputNum] == 1) {
