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

I'm try the code in robot. sensor is working (sending distance to serial monitor) well but motors are on same position without turning :confused: