A new technique for the long-term ambulatory detection of enterogastric and nonacid gastroesophageal reflux has been conceived, developed, and validated. It is based on the use of a fiberoptic sensor that utilizes the optical properties of bile. In vitro studies have shown good precision, good stability, sensitivity of 2.5 mumol/liter bilirubin concentration, as well as a useful working range of 2.5-100 mumol/liter bilirubin concentration. In vivo studies have been performed in 29 subjects. Simultaneous gastric aspirations have allowed a comparison of fiberoptic system measurements both with spectrophotometric analysis and bile acid concentrations of corresponding gastric juice samples. Linear correlations were shown between fiberoptic assessment and both spectrophotometric and bile acid concentration findings (P < 0.01). Simultaneous assessment of reflux with the fiberoptic system and cholescintigraphy has shown a 92.9% concordance as regards the presence or absence of reflux. Present results imply that the fiberoptic system is an important tool for the understanding of the clinical relevance of enterogastric and nonacid gastroesophageal reflux.