If its a temp sensor, one is a ground, the other signal. On GM style sensors, yellow is signal, black is ground. It does look like a temp sensor to me, but im not 100%.
My jeep gives a whole new meaning to the phrase, Just Empties Every Pocket!
1975 Jeep CJ5 258 TBI EFI, T-18, D-20, D44 rear, 4.11.
1992 Jeep Cherokee 4.0L, AW4, NP231 October 2009 - August 2012
1998 Jeep Cherokee 4.0L, AX15, NP231 - August 2012