It serve the intended purpose to detect an obstacle within a range of 3 cm to 50 cm.
The power supply is 5 V (red cable) and the output voltage (yellow cable) in case of a detection event is about 3.6 V.
The set-up of the detection distance can be set by means of a potentiometer inside the part.
All in all, a useful part