Omega B – Y/Z22XE – camshaft or crankshaft sensor?

Hi, I know, this question has already been asked tens of times in various forums and answered variously. Unfortunately, I have lost the overview and hope that you can limit the error. I drive a 2000 Omi 2.2 (with EasyJet-Autogasanlage) – often goes -especially at the warm start – the engine control light. After I have then driven a few meters, I start the engine new and the error is then mostly gone. When I get the error code read out I always use 0340 and 0170 (mixture with grease and reverb sensor). The problem is that the frequency is increasing and I have to start the engine more and more often before the indicator light runs out. Now I have read that there was probably a change in the cable at the NWS and I have to solder something around it. Then I read again that it could be the KWS, but I can only reach it if I unscrew the compressor of the air conditioner. Other instructions say again that I have the tensioning roller as well as d I’m a little confused. Which sensor could trigger this symptom and what would be to do? The gas system itself has been running for 50000km without any problems, so I don’t really suspect it. It greets a faithful but helpless omega driver?