The noticing qualities such as the level of Sensitivity and Quality factor (Q-factor) are evaluated deliberately. A two-dimensional photonic crystal (2DPC) centered stress sensing unit is modeled and designed. The 2DPC centered pressure sensing unit is designed using holes in slab configuration. The L3 defect is created by customizing the spans of three silicon poles and is introduced between two waveguides. It has been revealed that the sensor’s wavelength is transferred linearly to a larger wavelength area, which improves the sensor’s performance.