Diesel filter housing V40 1.9

Dear community, at the moment I’m desperately trying to get the start problems of my V40 1.9 Diesel 115hp into the grip. It actually only starts with the help of Startpilot, but then runs smoothly. Cold or warm doesn’t make any difference. The fault memory showed the camshaft sensor. I changed it, but did not bring any real improvement. Now to the actual question. Why is the plug on the housing of the die filter – compared to the supply lines. After all, it will certainly transmit any information to the control unit. If the sensor or switch in the housing is defective, this could also lead to the start problems.