A compact mid-infrared (MIR) laser spectrometer based on difference-frequency generation (DFG) is applied as a portable and sensitive gas sensor for industrial process control and pollutant monitoring. We demonstrate the performance of such a MIR DFG gas sensor by recording the absorption spectra of the carbon monoxide (CO) P(28) absorption line in the atmosphere of a gas-fired glass melting furnace. For a gas temperature of approximately 1100 degrees C, the CO concentration in the recuperator channel is measured to be 400 parts per million.