Laser locking system routine for use with an arduino, as described in accompanying report.