A smart city leverages technology to enhance the quality of urban life. One key aspect is optimizing traffic flow, which can significantly reduce congestion and improve transportation. This involves utilizing innovative solutions such as smart traffic lights, real-time routing systems, and autonomous vehicles. By collecting data on traffic patterns