An endoscopy capsule is provided for detecting a metabolic product of a bacterium located in a gastrointestinal tract, wherein the endoscopy capsule has a sensor unit with two electrodes and has a capsule shell that encloses a usable space, and wherein the electrodes are routed through the capsule shell.