Design of a Smart Factory Based on Cyber-Physical Systems and Internet of Things towards Industry 4.0 | Synapse