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