How to make wall/obstacle avoiding robot with arduino uno atmega 328

this is the code I used

Wonderful. So, now what we know is that you STILL can't post code correctly. Still NOTHING about where the other end of the wires go.

All I can say at this point is good luck.