A sensor is used to determine certain physical or chemical characteristics and transform them into an electrical signal to make them processable.