Modern buildings are increasingly embracing a advanced approach to smart factory energy management efficiency through the synergy of Internet of Things (IoT), Distributed Generation (DG), and intelligent resource control systems. This linking enables for optimized