The document describes a measurement system using a confocal displacement sensor to measure liquid level during capacitor production. Key requirements were a measurement range of 24mm, accuracy of 50μm or better, and ability to measure a reflecting liquid surface in an explosion-hazard area. The optoNCDT 2400 confocal sensor was selected due to its non-contact measurement, high accuracy against reflecting surfaces, and easy mounting in a protective housing with sealing to isolate it from explosive vapors. The system ensures individual capacitor components meet quality criteria by maintaining an exactly defined dipping depth.