A pressure sensor measures pressure by measuring the deflection of a MEMS membrane using a capacitive read-out method. There are two ways to implement the invention. One involves the use of an integrated Pirani sensor and the other involves the use of an integrated resonator, to function as a reference pressure sensor, for measuring an internal cavity pressure.