1989 Chevrolet Tahoe code 1345

When I am driving it loves really bad like it’s as if it’s going to die and when I come to a stop at does the same but not as hard and I can’t get my check engine light to come off it my check engine service engine light soon is on it through a code 1345 and I replace the sensors and it’s still throwing the code what do I do

From another site:

P1345 CHEVROLET Possible Causes

  • Engine mechanical condition-Valve timing off
  • Cam sensor or crank sensor are loose on their mounting
  • Faulty camshaft position sensor
  • Faulty crankshaft position sensor