This research paper presents the design and implementation of an adaptive traffic signal timer system that utilizes real-time traffic density calculation and an intelligent signal switching algorithm to optimize traffic flow at intersections. The proposed system leverages computer vision techniques like object detection to count and classify vehicles, and then dynamically adjusts the green signal durations based on the detected traffic density. A simulation module is also developed to visualize the system's performance and compare it to a static traffic signal implementation. The results demonstrate the effectiveness of the adaptive approach in reducing vehicle waiting times and improving overall intersection throughput