Smart Sensor for Predictive Maintenance Application using IO Link