This work represents experimental and simulation analysis of photonic crystal waveguide (PCW)-based biosensor structures, which is used for detection of the Escherichia coli (E. coli) cell. A method is adopted for E. coli culture to measure length, diameter, and refractive index to finalize the structural design and to verify the suitability of PCW as a biosensor. This method is tested using strains of E. coli. The typical precisions of measurements are varied in ranges from 1.132 to and from 0.447 to for pathogen’s length and diameter, respectively. The measured distribution of samples over length and diameter are in correlation with the measurements performed by scanning electron microscope. After obtaining average length and diameter of cylindrical shaped E. coli cell, we consider these values for simulation analysis of designed PCW biosensor. E. coli cell is trapped in the middle of the PCW biosensor having three different types of waveguides, i.e., gallium arsenide/silicon dioxide (), silicon/silicon dioxide (), or silicon nitride/silicon dioxide () to observe the maximum resonance shift and sensitivity. It is observed from the simulation data analysis that is the preferred PCW biosensor for the identification of E. coli.