Problem with my giulia engine timing signal

Model Year (e.g., 2016
Drivetrain (RWD
Mileage:
Description of the issue:

Good afternoon everyone,

I would really appreciate some help if anyone has experienced something similar.

I have a 2016 Alfa Romeo Giulia 2.2 150 HP. I completely rebuilt the engine. I replaced everything — the camshafts, crankshaft, injectors, and many other components. I put everything back together and also had the turbocharger rebuilt.

When I first assembled everything, I unfortunately did not time the engine correctly. I then timed it again properly using the correct timing tools.

After driving approximately 1,000–1,500 km, the car suddenly brought up the Check Engine light. I checked it with MultiECUScan, and it indicated a problem related to the camshaft position sensor.

I replaced the camshaft sensor with a new one, but the exact same fault came back.

At one point, after the Check Engine light appeared, I switched the engine off and then it would crank but would not start. After replacing the camshaft sensor, the engine started again, but the Check Engine light came back and the engine still does not run properly.

I have also replaced the crankshaft position sensor, but the problem is still exactly the same.

The engine has essentially been completely rebuilt and all the major components are new. Everything was assembled and timed using the correct tools.

So I would really appreciate some advice. Has anyone experienced a similar problem with the 2.2 JTDm? What could cause a camshaft sensor fault even after replacing the sensor?

Could it possibly be related to the engine timing, camshaft/crankshaft synchronization, wiring, reluctor/tone wheel, or ECU?

Any advice or experience would be greatly appreciated. Thank you!
Error Codes (If known):

P0340-00