Hall Effect Speed and Distance Sensor Code

if you have one magnet on the wheel and the sensor on the frame, each time the magnet passes the wheel you will have traveled the same distance as the circumference of your wheel.