A method for sensing a mechanical stress, a change in length, and/or a temperature change by transferring light between at least one optoelectronic component and at least one optical waveguide,
- wherein said optical waveguide comprises at least one first longitudinal section comprising at least one Bragg grating and a plurality of scattering centers, said Bragg grating having a variable grating constant along its longitudinal extent, said Bragg prating configured to permit light having a predetermined wavelength to be transmitted through the at least one Bragg grating to the scattering centers, wherein the scattering centers are configured to scatter the light having the predetermined wavelength laterally out of said optical waveguide, and
- wherein the optoelectronic component is arranged at the side of said optical waveguide and at a lateral distance thereof, and
- wherein said optical waveguide further comprises at least one second fiber Bragg grating arranged in at least one second longitudinal section of the optical waveguide and said second fiber Bragg grating is subject to a mechanical stress, a change in length, and/or a temperature change, and
- wherein light is at least partially reflected at said second fiber Bragg grating and scattered at least in the first longitudinal section at least partly into said optoelectronic component.