Optical encoders are critical components in systems with rotating shafts or parts. Optical rotary encoders are the most widely used way to transform mechanical rotary motion into electrical signals.