Due to changes and movements during a measurement process, the need to have an alignment system becomes imperative, in order to avoid all possible errors that may arise from a lack of alignment. In the effort to obtain the best possible conditions for alignment, it is necessary to check whether the object to be measured is well-positioned. Good alignment reduces down-time and should be part of the quality control process. The aim of this paper is the study of light and object alignments to monitor and achieve an optimal alignment system, in order to eliminate the effects of misalignment. The algorithms were tested with a not-optimal system to ascertain its efficiency. Besides, calibration parameters that have been studied in a previous work have been added to the whole experiment in order to quantify which impact has every single optimization in the measurement error of each stage.