Figure above is the circuit diagram connected to the breadboard as we use in real time.
Ultrasonic is connected to 5V, Echo is connected to pin 12 and Trigger is pin 7.
Infrared sensor is connected to pin 7
Servo motor is connected to pin 9
ESP8266 is connected to 3V, Pin 2 and RXD.
LED is connected to Pin 13.
Figure above is the schematic diagram connection of Arduino Uno and its devices.