On a 2001 Jeep Grand Cherokee 4.0L, the camshaft position sensor (CMP sensor) is located on the
front of the engine, typically
at the top of the cylinder head, near the distributor (if equipped; some 2001 models may have a distributorless ignition system). It's usually close to the crankshaft position sensor, but a bit higher up and toward the front.
You'll need a repair manual or a detailed diagram specific to your vehicle's year and engine to pinpoint the exact location. The sensor itself is usually a small, cylindrical component with a wiring harness connected to it. Because its location can vary slightly, relying on a visual aid is recommended to avoid any misidentification.