This document presents a system for optimizing traffic control at busy four-way intersections using a programmable logic controller (PLC). Sensors monitor vehicle density in each lane and the PLC uses this input to determine priority and automatically adjust light timing as needed. The PLC communicates with traffic lights and displays using RS-485 converters. When sensors detect heavier traffic in a lane, the PLC increases the green light time for that lane and decreases it for other lanes. This allows the system to dynamically optimize traffic flow based on real-time conditions.