An optical sensor for sensing a parameter of the group of temperature, humidity or mechanical stress, the optical sensor comprising a chirped Bragg grating and an optical reference reflector, which are serially provided within a common optical path that is optically connected to a first probing signal port at a first end thereof, the first probing signal port being configured to feed an optical probing signal to the chirped Bragg grating and to the reference reflector and to output a reflection signal comprising a first partial reflection signal created by the optical reference reflector and a second partial reflection signal created by the chirped Bragg grating as a response to the optical probing signal.