DK12-11-IO contrast sensors detect differences in two colors of media, with a three-color light source. The sensors are IO-Link compatible, include customizable and diagnostic LEDs, and can invert the output state and disable the adjustment potentiometer for tamperproof requirements, and log the output.