Esophageal pH monitoring is a diagnostic procedure used to measure the pH levels in the esophagus over a 24-hour period. This test is especially useful in detecting gastroesophageal reflux disease (GERD) in neonates, a condition where stomach acid frequently flows back into the tube connecting the mouth and stomach.