Sensing of the volatile organic compounds (VOCs) isopropyl alcohol (IPA) and heptane in air using sub-millimeter porous silicon-based sensor elements is demonstrated in the concentration range 50–800 ppm. The sensor elements are prepared as one-dimensional photonic crystals (rugate filters) by programmed electrochemical etch of p++ silicon, and analyte sensing is achieved by measurement of the wavelength shift of the photonic resonance. The sensors are studied as a function of surface chemistry: ozone oxidation, thermal oxidation, hydrosilylation (1-dodecene), electrochemical methylation, reaction with dicholorodimethylsilane and thermal carbonization with acetylene. The thermally oxidized and the dichlorodimethylsilane-modified materials show the greatest stability under atmospheric conditions. Optical microsensors are prepared by attachment of the porous Si layer to the distal end of optical fibers. The acetylated porous Si microsensor displays a greater response to heptane than to IPA, whereas the other chemical modifications display a greater response to IPA than to heptane. The thermal oxide sensor displays a strong response to water vapor, while the acetylated material shows a relatively weak response. The results suggest that a combination of optical fiber sensors with different surface chemistries can be used to classify VOC analytes. Application of the miniature sensors to the detection of VOC breakthrough in a full-scale activated carbon respirator cartridge simulator is demonstrated.