Methods of detecting one or more parameters of a medium are disclosed. The
methods include providing a waveguide grating device, contacting the
waveguide grating with a medium, propagating a signal having at least one
signal attribute through the waveguide, and comparing the modified signal
attribute to a known signal attribute to detect a parameter of the
medium.