Question: is pnp sinking or sourcing?
Answer: PNP sensors are current-sourcing devices, and NPN sensors are current-sinking devices. A current-sourc- ing sensor must be connected to a current-sinking input.