According to an embodiment, a pressure sensor includes a substrate, a support part, a flexible membrane part, and a magnetoresistive element. The support part is adhered on the substrate by using a first adhesive material with a first Youngs modulus and a second adhesive material with a second Youngs modulus different from the first Youngs modulus. The membrane part is supported by the support part. The magnetoresistive element is provided on the membrane part, and includes a first magnetic layer, a second magnetic layer, and a spacer layer provided between the first magnetic layer and the second magnetic layer.根據一實施方式,一種壓力感測器,包含:基板、支撐部、撓性膜部、和磁阻元件。支撐部藉由使用具有第一楊氏模量的第一黏合劑材料和具有與該第一楊氏模量不同的第二楊氏模量之第二黏合劑材料而黏合在基板上。撓性膜部藉由該支撐部支撐。磁阻元件設置在該膜部上,且包括第一磁性層,第二磁性層,和在該第一磁性層和該第二磁性層之間設置的間隔層。20‧‧‧MEMS晶片21‧‧‧支撐部22‧‧‧隔膜23‧‧‧磁阻元件24、25‧‧‧側31‧‧‧第一黏合劑材料32‧‧‧第二黏合劑材料