Tying data to variables so as to not write lots of if statements

The timing software (in Arduino IDE)