Hello at first glance for what you tell us, two things occur to me:
did you disconnect it? Or did you disassemble it? If it is the first thing it may be that the switchboard is recorded the error, which you can try to erase it with a diagnostic machine, if you disassembled it and moved the car and the position of the sensor with respect to the camshaft change, surely you have "left point" to put it to point you will need the workshop manual.
In the autodata (Mechanage program) everything comes out, electrical schemes checks, distribution, etc ..
greetings