How do you replace a camshaft position sensor on a 2000 Nissan Xterra?

How do u replace the camshaft sensor for a 2000 Nissan xterra 3.3L and where is its locatoin