I encountered a Steve Stevens in Golden, CO who hacked two magnets on his ordinary to read accurate speeds on his cyclocomputer.
I guess these days you’d use either GPS on its own or a cadence sensor and let your Garmin GPS figure out the wheel size automatically.