Magnetic encoders use a sensor to detect the movement of one or more magnets. Their electronics produce output in proportion to speed and/or distance traveled.
Please correct the following before continuing: