 void setup() {
   Serial.begin(9600);   // Test
   Serial.println("Stopwatch");
+  
   pinMode(buzzerPin, OUTPUT);
   pinMode(laserPin, INPUT);
   pinMode(onPin, INPUT);
+  
+  pinMode(returnPin, INPUT);
+  pinMode(prevPin, INPUT);
+  pinMode(nextPin, INPUT);
+  pinMode(setPin, INPUT);
   
   measurementTimeout.restart();
 

  
}

void logAndRestart() {
    if (measurementIndex < maxMeasurements){
      measuredTimes[measurementIndex] = chrono.elapsed();

#include <Chrono.h>
#include <LightChrono.h>

const int laserPin = 2;     // the number of the pushbutton pin
const int buzzerPin =  3;      // the number of the LED pin
const int onPin = 4;     // the number of the pushbutton pin

const int returnPin = 5;
const int prevPin = 6;
const int nextPin = 7;
const int setPin = 8;

Chrono chrono(Chrono::MICROS);
unsigned long measuredTimes[10];
