Hi, the serial number on the sensor would indicate which is needed. It’s either a NPN or PNP