Photoelectric switches are mounted on the rail tracks and detect the presence of objects on the tracks. This information is then transmitted to the vehicle’s control system, which initiates the necessary actions to avoid collisions. With photoelectric switches, automated rail vehicles can detect objects on the tracks in real-time and respond accordingly, ensuring the safety of passengers and materials.