A method for providing a perfectly flat top with a sharp edge on a dynamic pressure sensor using a cup-shaped stretched membrane as a sensing element is described. First, metal is deposited on the membrane and surrounding areas. Next, the side wall of the pressure sensor with the deposited metal is machined to a predetermined size. Finally, deposited metal is removed from the top of the membrane in small steps, by machining or lapping while the pressure sensor is mounted in a jig or the wall of a test object, until the true top surface of the membrane appears. A thin indicator layer having a color contrasting with the color of the membrane may be applied to the top of the membrane before metal is deposited to facilitate the determination of when to stop metal removal from the top surface of the membrane