Pressure switches and pressure sensors are used to sense pressure and then convert it into an electrical signal.