Low cost position detection using a diy "encoder"
Using 1 hole per position with serial shared LED current and PD's (photodiodes or even LEDs in reverse but -5V only.)

Use 20mA for all LEDs
insert LED's in 5mm holes and black heatshrink over 5mm PD's aimed at hole within 5mm gap.