The development of a new optoelectronic sensor system allows real time monitoring and control of the focal error in laser welding process. By means of a fast automatic calibration at the beginning of each welding, the developed system is able to adjust itself to the environmental conditions of the process, thus, reduce the initialization time