optical shaft encoder
Optical encoders function similar to a rotary encoder, but has an electromechanical device that uses a sensor to identify position change as light passes through.