Design plan of a comprehensive monitoring system in a factory