Sensors as elements to increase reliability of mechanical components