Smart sensors & embedded AI for predictive maintenance