hi where is the camshaft position sensor located? on 2000 Volkswagen Cabrio

the car stalls when stopped at light n when driving when i slow down. it has no power when shifting gears. it says trouble shooting p0341

Asked by for the 2000 Volkswagen Cabrio
When I don't know where something is, I try to get a picture of the part, then try to find it on the engine. Since it's a camshaft sensor, it should be somewhere around the camshaft, and I would guess near the end of the cylinder head.
thank u