Unlike photoelectric sensors, Ultrasonic Sensors can detect an object without being influenced by its colors. For example, if two objects have the same shape, even if one is transparent, such as glass, and the other is black plastic, they can both be detected with the same settings.