Making Arduino count time under the stimuli