Obstacle Avoiding Circuit

I have made a obstacle avoiding circuit in this circuit if there is any object within 10 cm of the robot then it will go left else it will go front
Supplies





The parts you need to make this are as follows:
- Bread board (small)
- L293d (motor driver)
- Motor 2 nos.
- Arduino UNO R3
- Ultrasonic sensor - distance
The Wiring

Do the wiring as shown in the picture
The Code

Do the code as shown in the picture