Measurements of NH 3 and CO 2 were made in bioreactor vent gases with distributed-feedback diode-laser sensors operating near 2 m. Calculated spectra of NH 3 and CO 2 were used to determine the optimum transitions for interrogating with an absorption sensor. For ammonia, a strong and isolated absorption transition at 5016.977 cm Ϫ1 was selected for trace gas monitoring. For CO 2 , an isolated transition at 5007.787 cm Ϫ1 was selected to measure widely varying concentrations ͓500 parts per million ͑ppm͒ to 10%͔, with sufficient signal for low mole fractions and without being optically thick for high mole fractions. Using direct absorption and a 36-m total path-length multipass flow-through cell, we achieved a minimum detectivity of 0.25 ppm for NH 3 and 40 ppm for CO 2 . We report on the quasi-continuous field measurements of NH 3 and CO 2 concentration in bioreactor vent gases that were recorded at NASA Johnson Space Center with a portable and automated sensor system over a 45-h data collection window.