The increasing demand for energy coupled with the environmental concerns associated with fossil fuels necessitates a shift towards renewable energy sources. Solar, wind, geothermal, and hydro power offer clean and sustainable alternatives but come with inherent challenges. Unlike traditional, dispatchable power plants, renewable energy generation is intermittent and dependent on weather conditions. This variability poses significant challenges for grid operators in maintaining a stable and reliable power supply.Smart grids emerge as a solution by introducing two-way communication capabilities and distributed intelligence. They enable real-time monitoring and control of energy flows within the grid, facilitating the integration of renewable energy sources. Prosumers, a new category of grid participants who not only consume but also generate electricity through rooftop solar panels or micro-wind turbines, play a crucial role in smart grids. Their active participation can significantly impact overall grid efficiency and stability.