Miniature Gas Sensing Device Based On Near-Infrared Spectroscopy