The crankshaft position sensor (CKP sensor) on a 2002 Chevy Avalanche with the 5.3L engine is located on the passenger side (right side) of the engine block, near the front of the engine. It's typically mounted on the engine block itself, close to the crankshaft pulley. You'll likely need to look underneath the vehicle to get a clear view of it.
Important Note: The exact location can vary slightly depending on the specific engine configuration, but it's consistently in that general area. A repair manual specific to your year and engine will give you the most precise location. Using a repair manual is highly recommended before attempting any work on your vehicle.