Optimization of Manufacturing Systems Using the Internet of Things