Compact Spectroscopic Sensor Using an Arrayed Waveguide Grating