Cheap DIY Speedometer

If what you're measuring is RPM then you have a tachometer. What most people do is attach a magnet to the shaft or wheel hub and use a hall sensor to detect RPM. Some use light beam interrupt by spokes but dirt can foul that. What's good with that way is it can be fit to anything with a wheel.