A sensor (10) for measurement of the deflection of a machine element comprises a detecting portion, a light source, a light detector, and connected guides. An electronic data processing unit is connected to the sensor. The detecting portion comprises a tuft of optical fibers, a focus