Reference laser integrated in the device