Capacitive displacement sensors called capaNCDT are used to automatically measure the distance between a drum and flat in a carding machine. The sensors, mounted on a measuring flat rod, measure the gap across the drum width with an accuracy of 0.02mm. This fully automatic system eliminates incorrect manual settings and improves quality assurance by documenting measurement results.