An optical layer structure having at least two layers and also a sensor based
on this layer structure are described. The layer structure comprises at least a
substrate layer and at least one (light) waveguide layer and a coupling element
for the coupling of the optical beam, the layer adjacent to the waveguide layer
having a smaller refractive index than the waveguide layer, and at least one layer
consisting of a photoaddressable polymer.