Developing an automated industry IoT solution for predictive maintenance