Was this issued by the OEM as a direct replacement? As Proximities can come in NPN or PNP (sink or source).
If this is a direct replacement then in the absence of any other instructions, it would most likely be safe to assume that the original was Red+v, Black -v and White load or output.
The most common colours now are Brown +v, Blue-v and Black, output.
You should be able to confirm the original colour identity be how it is wired into the machine.
What is the make of the replacement?
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.