In an optical encoder, very small LEDs are used to transmit light through a disk with notches at specified intervals. These intervals determine the resolution of the encoder. Once the light passes through the notches, light sensitive receivers receive the signal and send it out as position data.