Magnet sensor (A3144’s) + magnets + spinny disc = tachometer.
Here’s the quick and dirty code I used — it’s good enough for a demo.
EDIT: Ha, I found a video of someone else doing the same thing, but with roughly a BILLION more steps. People gotta learn how to be lazy.