It measures the physical quantity, which is pressure and acceleration, and both of these sensors wor…