Contract sensors can detect and compare precise contrasts. The devices are used for reliable, precise detection of printed marks using color and grayscale contrasts on the most varied carrier materials such as labels, films, banderoles, cartons or tubes. The devices are configured through intuitive teaching-in.