This is a LED used to indicate the distance. There are 7 segments on this LED. All 7 segments share the same anode. The other 7 pins correspond to the cathode of each segment. Please use a current limit resistor to limit the current, otherwise, the LED will be damaged.
3 segments have the color of green, 2 segments have the color of orange, and the rest two have a color of red.