This is the code for an Arduino-based reaction tester, which measures the user's reaction time by randomly activating an LED, starting a timer and then displaying the value of the timer when the user pushes the button.
You can find the tutorial to build it here: https://www.instructables.com/Arduino-Reaction-Tester/