Gold nanoparticle-based sensors leverage the localized surface plasmon resonance (LSPR) effect. When AuNPs are exposed to specific wavelengths of light, they exhibit strong absorption and scattering due to the collective oscillation of their conduction electrons. This property can be harnessed to detect various analytes by observing changes in the optical properties (such as color) of the nanoparticles.