Fault code P1345

Following the cam replacement the fault occurred again. This was after taking the car for a run.Then we cleaned the crankshaft sensor rather than spend £75 on replacing. Guess we are waiting for the fault to show again. Maybe we have sorted it !!