Condition monitoring for factory automation