A miniature gas analyzer made by integrating a chemoresistor with a microchannel.