Nanophotonic sensors operate by manipulating light at the nanoscale to enhance sensitivity and selectivity. They typically rely on phenomena such as surface plasmon resonance (SPR), photonic crystals, or quantum dots. When a target molecule interacts with the sensor, it causes a change in the optical properties—such as a shift in wavelength or intensity of light—which is then measured and analyzed.