Method of manufacturing a pressure sensor for measuring a fluid pressure in a device, the method comprising: - providing a port element, the port element comprising a sealing structure and a membrane with a fluid side to be exposed to the fluid pressure and a strain sensing side, the sealing structure providing a seal when the port element is attached in an opening of the device, the membrane having a membrane central axis and the port element having a port central axis, - positioning four strain gages (G1...G4) to the strain sensing side in such a way that two strain gages (G1, G4) are put in compressive strain and two strain gages (G2, G3) are put into tensile strain when fluid pressure is applied to the membrane; and, - connecting the four strain gages to form a Wheatstone bridge circuit; characterized in that, the method further comprises a strain gage position determining action comprising: - generating a mathematical model of the port element; - a first finite element action determining on the sensing side of the membrane with a finite element algorithm using the mathematical model a first contour around the membrane central axis with equal first strain sensitivity for pressure along the first contour line and a second contour around the membrane central axis with equal second strain sensitivity for pressure along the second contour line wherein when fluid pressure is applied to the membrane the degree of compression of the surface on the first contour is equivalent to the degree of stretching of the surface on the second contour; and, - a second finite element action determining with a finite element algorithm using the mathematical model on the first contour a first position for a first strain gage of the four strain gages and a fourth position for a fourth strain gage of the four strain gages and on the second contour a second position for a second strain gage of the four strain gages and a third position for a third strain gage of the four strain gages, the four determined positions defining the positions of four strain gauges of a simulated Wheatstone bridge, wherein when a characteristic parasitic force applied to any location on the sealing structure or any other location of the port element generates an error signal, for the four determined positions it holds that the difference between the maximum error signal and the minimum error signal measured by the simulated Wheatstone bridge in response to the characteristic parasitic force applied to any location on the sealing structure or any other location of the port element is minimal; and the method further comprises: - positioning two of the four strain gages on the two positions on the first contour and two of the four strain gages on the two positions on the second contour. - providing a port element, the port element comprising a sealing structure and a membrane with a fluid side to be exposed to the fluid pressure and a strain sensing side, the sealing structure providing a seal when the port element is attached in an opening of the device, the membrane having a membrane central axis and the port element having a port central axis, - positioning four strain gages (G1...G4) to the strain sensing side in such a way that two strain gages (G1, G4) are put in compressive strain and two strain gages (G2, G3) are put into tensile strain when fluid pressure is applied to the membrane; and, - connecting the four strain gages to form a Wheatstone bridge circuit; - generating a mathematical model of the port element; - a first finite element action determining on the sensing side of the membrane with a finite element algorithm using the mathematical model a first contour around the membrane central axis with equal first strain sensitivity for pressure along the first contour line and a second contour around the membrane central axis with equal second strain sensitivity for pressure along the second contour line wherein when fluid pressure is applied to the membrane the degree of compression of the surface on the first contour is equivalent to the degree of stretching of the surface on the second contour; and, - a second finite element action determining with a finite element algorithm using the mathematical model on the first contour a first position for a first strain gage of the four strain gages and a fourth position for a fourth strain gage of the four strain gages and on the second contour a second position for a second strain gage of the four strain gages and a third position for a third strain gage of the four strain gages, the four determined positions defining the positions of four strain gauges of a simulated Wheatstone bridge, wherein when a characteristic parasitic force applied to any location on the sealing structure or any other location of the port element generates an error signal, for the four determined positions it holds that the difference between the maximum error signal and the minimum error signal measured by the simulated Wheatstone bridge in response to the characteristic parasitic force applied to any location on the sealing structure or any other location of the port element is minimal; and the method further comprises: - positioning two of the four strain gages on the two positions on the first contour and two of the four strain gages on the two positions on the second contour.