In recent years, there has been a growing interest in vehicle-to-grid (V2G) technology and its potential impact on the future of energy consumption and sustainability. This innovative technology allows electric vehicles to not only consume electricity from the grid but also to feed excess energy back into the grid when needed. As countries around the world strive to reduce their carbon footprint and transition to renewable energy sources, V2G technology has emerged as a promising solution to optimize energy usage and grid stability.