A quasi one-dimensional photonic crystal has been fabricated and the applicability of this kind of structure for optical sensing has been investigated by measuring the transmission spectra as a function of the cladding refractive index. The cladding index was varied using a liquid flow, of which the index was slowly varied over a small range. The shift with cladding index of the steep stop band edge provides a relatively sensitive detection mechanism in an extremely compact device