Consumers routinely use electrical devices, leading to a disparity between consumer demand and the supply side a significant concern for the energy sector. Implementing demand-side energy management can enhance energy efficiency and mitigate substantial supply-side shortages. Current energy management practices focus on reducing power consumption during peak hours, enabling a decrease in overall electricity costs without sacrificing usage. To tackle the mentioned challenges and maintain system equilibrium, it is essential to develop a flexible and portable system. Introducing an intelligent energy management system could pre-empt power outages by implementing controlled partial load shedding based on consumer preferences. During a demand response event, the system adapts by imposing a maximum demand limit, considering various scenarios and adjusting appliance priorities. Experimental work, incorporating user comfort levels, sensor data, and usage times, is conducted using Smart Energy Management Systems (SEMS) integrated with cost-optimization algorithms.