—for astronaut health care, trace ammonia and carbon dioxide concentration should be on-line detected. We presented a system with high sensitivity and stability based on quartz enhanced photoacoustic spectroscopy with hollow-core photonic bandgap fiber (HC-PBF) as reference cell for