An optical fiber grating is a small segment within an optical fiber altered to act as a selective filter for light. This treated area functions like a specialized mirror, reflecting a specific wavelength of light while allowing all other wavelengths to pass through. The underlying. Fiber optic sensors work by modulating one or more properties of the light wave, such as intensity, phase, polarization, and frequency.