Hey I have a 2001 nissan quest it crank but not start I scanned and a po340 code came up but I don't know where is located that sensor

that's the bank one camshaft sensor, on the front of the engine on bank one. Go to auto zone, they can sell you one and show you on your car and their computer screen where it is exactly