This document describes an intelligent traffic light controller system using embedded technology. The system uses IR sensors to detect vehicle counts on roads and an ADC to convert the analog sensor data to digital data for processing by a microcontroller. A K-means clustering algorithm is used to determine optimal traffic light timing schedules based on vehicle counts. The timings are sent to traffic lights through the microcontroller. Vehicle counts and timings are stored in a MySQL database. The system aims to minimize traffic delays by dynamically adjusting light schedules in real-time based on current traffic conditions.