DON’T remove the camshaft position sensor during engine running or right after engine stops, or a scald by the flowed out engine oil may occur.
Turn the ignition switch OFF and disconnect the battery (-) terminal
Disconnect the camshaft position sensor connector (A), and then remove the sensor mounting bolt (B).
Remove the camshaft position sensor.