Hello people,
I'm new on here and look for some much need help please.

I have an Astra 1.8 bertone convertible and I'm having problems with the cam sensor? I recently changed the engine as the cam belt snapped on the old 1! when I now start the replacement engine in the car, it starts but idles irregularly and won't rev above 4000rpm? I had it plugged in on a snap on diagnostics and it read cam shaft sensor fault? So I replaced it but the engine is still the same as irregular idle and will not rev above 4000rpm! This is really breaking me as going through all the engine removal and replacement was a hard job but have this small problem is driving me up the wall!!! Is there anyone on here that would point me in the right direction to solving this problem I I'm out of clues....? Thanks for reading,