A confocal sensor is a type of optical sensor that uses a focused laser beam to scan an object and collect high-resolution images or data. The laser beam is scanned over the object, providing a more detailed image than a standard imaging system. The confocal technique also allows for a three-dimensional image to be gathered, providing a more complete image of the object.