A sensor is a device that detects and responds to a physical stimulus, such as heat, light, sound, pressure, or motion, and converts it into a usable signal, often an electrical one. Think of it as a machine’s “sense organ” that allows it to “perceive” its environment.


