What is a sensor?

sensor is basically a device which detects and converts your signal of interest into a measurable or observable quantity (mostly an electrical signal). Say for example, a pressure sensor detects pressure and converts it into an electrical output which can be further processed for actuation or to be displayed.