Photon absorption is fundamental to the function of many optical sensors. Nanoscale materials can provide high sensitivity and specificity by absorbing light at specific wavelengths, which can be used for detecting chemical and biological species. Surface-enhanced Raman scattering (SERS) is a prime example where nanoparticles enhance the signal of absorbed photons, making it possible to detect low concentrations of analytes.