The measurement and inspection of products and their dimensions in industry plays an important role in determining the quality of a product. Correct measurement is a key factor in production. Many companies are subject to stringent safety standards and specific product requirements. Accurate measurement ensures compliance with these guidelines, avoiding fines, penalties and legal complications. Effective measurement processes can identify inefficiencies, defects and areas for improvement, leading to cost savings. By detecting defects early in the production cycle, manufacturers can reduce waste and optimize resource utilization thereby reducing overall production costs. A fundamental principle of good measurement is to ensure that the measuring instruments are suitable for the specific application and that they meet the measurement requirements for the measurement parameter. The objective of the experiment is to verify and compare the measurement capability of a confocal chromatic sensor against a measurement probe used in production. The parameter to be measured is the diameter, since the correct diameter plays an essential role in the production of shafts or other cylindrical products. The results contained in the thesis highlight the importance and differences between the different measuring devices and the qualification to use the measurement of a given parameter.