Smart Sensors for Predictive Maintenance