Some of these proximity switches already have a pull-up resistor inside.
Here is a good explanation of how to calculate it's value.
See page 11 http://cnc4pc.com/Tech_Docs/C50R1_user_manual.pdf in the ones I have it is 10K

..Clive