DIY racing pedals

Where is that delay? Can't see it.
Reading 3 consistent digits is good I suppose.
There's a lot You missed to tell.
You're supposed to have been reading this link before posting: How to get the best out of this forum - Using Arduino / Project Guidance - Arduino Forum
Please update Your post.