Today's structures are rapidly adopting automated solutions to enhance functionality. This necessitates the smooth combination of several facets, including the sensor infrastructure, distributed generation (DG) , and sophisticated energy management systems . IoT devices provide real-time metrics