IoT enabled predictive maintenance