A sensor assembly comprises an optical fiber having a sensing fiber portion that comprises at least one Fiber Bragg Grating. Further, the sensor assembly comprises a sensing body having body ends coupled to the fiber at opposite axial sides of the sensing fiber portion. Optionally, the optical fiber is arranged within a capillary, and the body ends of the sensing body are attached to the capillary, at opposite axial sides of the sensing fiber portion. The capillary may be filled with glue for attaching the optical fiber to the capillary.