A sensor is a device, module, machine, or subsystem whose purpose is to detect events or changes in its environment and send the information to other electronics.