See picture below, it clearly shows the location!
There is a heat shield that has to be be removed to access the sensor. (6mm bolts, requires 10mm socket or wrench)
Sensor is held in by a metric allen bolt, 5mm allen wrench. After you remove the allen bolt, twist the senor back and forth while pulling on it, it should pull right out...
It can be changed from the underside of the Jeep by getting it up on either ramps or jack stands. Changed mine in less than 30 minutes....

_________________
Supporting Vendor and Moderator of LOST05 Jeep Liberty CRD Limited 
Ironman Springs/Bilstein/Shocks
Yeti StgIV Hot Tune
Week's BatteryTray
No FCV/EGR
Samcos/ProVent
SunCoast/Transgo
Carter Intank-pmp
2mic.Sec.Fuel Filter
Flowmaster/NO CAT
V6Airbox/noVH
GM11 Bld.fan/HDClutch
IronrockArms/wwdieselMount98 Dodge Cummins 24 Valve