What is sensor

A sensor is a device that detects and responds to some type of input from the physical environment. Sensors can measure various properties such as temperature, pressure, light, sound, motion, and more. They are commonly used in industrial automation, smart home systems, robotics, and other applications to gather data and provide feedback for control systems.