Proximity sensor for conveyor systems