Trouble adapting Speed code (Reed Switch)

So for those wondering about the 56.8 in the mph calculation:
speed of 1in/ms = 56.8mi/h
so the radius value won't effect this, this is just to convert from in per ms to miles per hour.

hope this helps clarify things,
-S