P052 appears to be an incomplete fault code. P052B seems to be what you most likely would have (A Camshaft Position Timing Over-Retarded Bank 1) which is the intake cam position location being in a retarded timing position. The reason for this fault code is several possibilities and is less likely to be a cam sensor-related issue. Since the VANOS system works using hydraulic pressure (uses engine oil) oil flow to the cam could be a problem, the camshaft bearing ledges have worn allowing oil to pass by the sealing rings on the cam, carbon/obstruction in the oil passages, oil non return valves not working properly to maintain oil volume in the cylinder head, the cam reluctor ring has slipped out of position (usually due to the cam bolt starting to break), engine has skipped timing, VANOS hub is faulty, ad other associated reasons. Bottom line, it's not highly likely the problem is related to the cam sensor. This is generally a mechanical related fault code. A complete system diagnostic needs to be performed to determine the reason for the code,