1) Remove the camshaft position sensor.
2) Measure the resistance between connector terminals of camshaft position sensor.
Terminals
No. 1 — No. 2:
Is the resistance between 1 — 4 kΩ?
Repair the poor contact of camshaft position sensor connector.
Replace the camshaft position sensor.