How Sensors Work in Industrial Robotics to Mitigate Hazards and Risks