Making laser head return to home automatically

These posts might be of help:

But it all depends heavily on your hardware.