Leveraging Industry 4.0 to Create Smart Factories