In a method for producing a sensor instrument (2) having an ammonia-sensitive sensor (8), said sensor being designed to examine the mucous membrane of the esophagus, stomach, and duodenum of a patient for infection with bacteria, at least one electrically conductive wire (10) is embedded in a non-conductive matrix (12) and then an end of the wire (10) is exposed by way of grinding.