Smart sensors for smart factories: At the crux of Industry 4.0