Where is the camshaft position sensor located on a Chevy S-10 22L 4-cylinder engine?

On a '99 S-10 2.2, the camshaft position sensor is located on the passenger side of the engine block, about halfway back. You can access it through the wheel well (remove the wheel first, and be sure to use a reliable jack stand). It is directly in front of the coil pack, (about 2 - 3 inches). It has a 3-prong plug. Be very careful when trying to remove it. (I broke the crankshaft sensor off, almost had to pull the engine. I ended up drilling two holes in it and pulling it with a small needle-nosed vice grip.) Don't try to pry it out with a screwdriver. Get ahold of it with vice grips and pull with a twisting motion.