ok, first off, I think you got the NPN and PNP mixed up. I take it NPN is the old and PNP is the new?
If so, this should be relatively easy to change about with a couple of resistors.
You can see, the old one had the contact on the powerline, the new one is to ground.
So what you can do, is if you tie a 1K resistor between 5V and the sensor input, this will pull it high, then if you connect the new sensor, using the NC connection (WH - I assume white) What that will do is pull the input low. Then if the sensor is triggered, it opens the contact, and the 1K resistor should pull the input high. This should mimic the operation of the old sensor. You may need to play with the resistor values a bit to get it to work, but the higher you can get away with, the better. it'll reduce power consumption, as the resistors are across the powerlines essentially when the sensor isn't triggered.