IoT based system which creates energy profile of the buildings based on variables such as energy usage, occupant comfort, energy tariffs, building characteristics and historical and real-time data. The developed platform can make changes to a facility through the system to optimize energy consumption and energy costs, while maintaining occupant comfort