1999 chevy blazer

How do I put a 2002 motor in the 1999 same 4.3 Vortec but is a detonator sensor

1999 Chevy Blazer