real-time monitoring in smart factories