A wireless capsule or a small probe is positioned near the lower esophagus to monitor esophageal acid levels.