If you want a correct speedometer there's lot of cheap (near $10) bicycle speedo to mount on handlebar. They have a magnet to glue on the rim of the wheel and a sensor on the fork.
Take the right wheel size (outside the rubber) and program the speedo with it.

They're really precise with only 0.2-0.3 percent gain.