Magnetic encoders use two magnets to sense the location of the encoder shaft. A stationary magnetic sensor works in conjunction with a magnetic drum that is connected to the encoder shaft. As the shaft spins, the sensor detects the movement of the magnetic drum. The encoder then transmits the location of the shaft to the unit.