An optical sensor known as an FBG is produced by laterally exposing a single mode fiber core to a strong UV laser light pattern on a regular basis. The exposure causes a sustained increase in the refractive index (ncore) of the fiber's core, resulting in fixed index modulation called grating (λ). The grating inside the fiber optic core must reflect a certain wavelength of incoming light while transmitting all other wavelengths. This wavelength is referred to as the Bragg wavelength or Bragg linked to grating period. FBG functions as intended when a Bragg reflector is built on an optical fiber by taking use of the regular fluctuations in the refractive index of the single mode fiber core. When light travels through the FBG, certain wavelengths will be transmitted and others will be reflected. When the strain or temperature around the grating varies, a shift in the wavelength of the light reflected is observed.