The Ultrasonic Sensor continuously checks for vehicles.
If a vehicle comes within a certain distance e.g., less than 15 cm:
The LCD shows "Vehicle Detected" and "Opening Gate".
The Servo Motor rotates to open the gate.
After a delay, it closes the gate automatically.
If no vehicle is detected:
LCD shows "No Vehicle" and "Gate Closed".