5 pin optical encoder

The 5th pin goes to the phototransistor's base, can be used to modify collector current for filtering, attenuation, etc.