With its block shape, you can easily use this sensor at mini sumo robots.
The sensor is working at 5V, gives NPN open collector output. (You should use with mcu which have pull-up function or add a 10 kohm resistor between signal and 5V line)
Cable Colors:
Yellow: NPN Output (Logic Level)
Red : 5V
White: 0V (GND)
Some sensors can have different cable colors. Please refer to this: