Bicycle speedometer

Thank you for your response. Would your mind explaining what exactly that INPUT_PULLUP does? Any usefull link or something that is similar to what you are thinking?

thank you.