I make this recommendation because it solved my own similar problem (stalling at idle, although in my case the «wrong» OBDII code that my Mitsubishi was giving was P0300 (Random / Multiple Cylinder Misfire.)
The engine just clicked once when I tried to start it, and there was now an error code for «multiple cylinder misfire» in addition to the bad sensor, which I've read is a logical next thing to go wrong if your camshaft position sensor is bad.