Optical and Sensor Characteristics of Nanocomposites