The KY-029 is a 3-pin dual-color (bi-color) LED module — a single 3 mm package holding a red and a green LED on a common cathode. Drive each color independently from a digital pin, or mix them with analogWrite() PWM to blend red + green into yellow.
It’s an output device, not a sensor: the module emits light, it doesn’t detect anything.