A sensor for measuring at least selected component in a composition can
include: (a) a broadband light source, (b) an acousto-optic tunable
filter (AOTF), (c) means for generating a beam of light from the light
source and directing the beam of light at the AOTF wherein the AOTF is
tuned to pass detection light having a desired wavelength range to detect
the presence of the at least one component in the composition, (d) means
for directing the detection light of known wavelength to the composition,
(e) detection means for receiving light that emerges from the
composition, and (f) a control signal generator configured to provide the
AOTF with at least one desired wavelength range that is characteristic of
the least one component in the composition. As an example, the sensor can
be used to measure the thickness of optically transparent films.