The invention relates to a gastroscope (1) comprising an insertion tube (2) at the distal end (3) of which a sensor (4) is arranged, said sensor (4) having a first electrode (5) which is produced of an acid-fast noble metal, and a second electrode (6) which is produced of silver. An electrical voltage can be applied between the first electrode (5) and the second electrode (6) and a change in an electric variable can be measured between the first electrode (5) and the second electrode (6) when ammonia is present. The gastroscope according to the invention allows the screening of the gastric acid and of the tissue of the stomach lining for Helicobacter pylori in a manner that is gentle on the patient.