This paper presents a novel method for autonomous traffic signal control using decision trees to optimize signal durations and reduce traffic congestion. By employing real-time vehicle counting through image processing techniques, the system dynamically adjusts traffic signals based on vehicle presence at each lane of a junction. The decision-making process employs a structured algorithm that assesses the vehicle counts and adjusts signal statuses to enhance traffic flow and minimize delays.