a method and device for analyzing species in a sample includes immobilized ligands in a porous matrix disposed in a microchannel . a method of analysis is provided by loading a sample to the microchannel and establishing an analyte flow through the porous matrix . the analyte is detected as the species that binds to the ligand immobilized in the porous matrix . the present method may be adapted to identify multiple species present in a sample by immobilizing different ligands in a series in a single microfluidic channel by sequentially photopolymerization of various porous matrixes , each containing different ligands .