A vacuum sensor is an electronic device that measures the level of vacuum in an enclosed environment. It is often used to detect changes in pressure, such as when a vacuum pump is running, or to detect the presence of an air leak. Vacuum sensors can also be used to measure the pressure of gases in a system, such as in a medical system that measures the pressure of oxygen.