How to make a distance laser speak with a DC

Well, if you're not into programming, why not solve it with electronics? If conditions are simple, you can make an analog sensor for laser, driving motor circuit.

We are forced to have arduino coding like this, else we wont pass...

In this case you should probably invest the time to learn it.