We address the sensitive detection and discrimination of gases impacting the environment, such as CH4, NH3, SO2, and CO, using a sensor array and aided by principal component analysis (PCA). A 32-element chemiresistive sensor array consisting of nine different sensor materials including seven types of modified single-walled carbon nanotubes and two types of polymers has been constructed. PCA results demonstrate excellent discriminating ability of the chemiresistor sensor chip in the 1-30 ppm concentration range. The accuracy of the sensor was verified against data collected using cavity ring down spectroscopy. The sensor chip has also been integrated with a smartphone and has been shown to reproduce the sensing performance obtained with the laboratory measurement system.