Product selector for photoelectric distance sensors