A pressure sensor comprises a housing, a housing plug and a pressure port, which projects into the housing. The pressure sensor has a pressure-sensing element adhesively cemented on the pressure port, so that a passage, located in the pressure port, is sealed. To produce an adhesive film between the pressure port and the housing, the pressure port or the housing or both exhibit a recess in a region, which borders at least section by section on the adhesive film. The volume of recess is equal to the volume of the adhesive film. To produce the adhesive film, the intermediate space between the pressure port and the housing is filled with the adhesive, which was introduced into the recess, while utilizing a capillary effect.