The triangulation sensor scans the seam shape along the joint without actually touching it and transmits information including gap dimensions, joint edge offset and positioning of the tool relative to the workpiece surface to the robot controller. Integrated extraneous light filtering ensures smooth operation even in the area close to the process. Efficient signal analysis ensures reliable detection, especially on reflective surfaces.