Object Avoiding Robot

This is a simple TinkerCAD experiment known as Obstacle Avoiding Robot.In this particular experiment my simulation circuit makes the motors to rotate in the left direction if there is an obstacle else it will make the motors rotate in forward direction.
COMPONENTS REQUIRED





The following are the components which is required to make this circuit:
1) Arduino Board- 1no
2) Bread Board- 1no
3) Motor- 2no
4) Sensor- 1no
5) L293D- 1no
CONNECTIONS

Make the following connections using the TinkerCAD software as shown in the picture
CODE BLOCKS

Assemble the following code blocks using tinkerCAD software as shown in the picture