resistor value needed to project arduino input

Define "not good sensor data". Show a scope picture.

Did you connect it with the cathode (ring to the sensor), and use the internal pull up of the pin.
And you did use a small/fast diode, like the recommended 1N4148.

If so, and you didn't get a good signal, then it isn't an NPN output.
Leo..