Driver's side of engine compartment, near front engine cylinder bank.
I would recommend obtaining a shop manual for an illustration and direction.
This is the engine coolant temperature sensor location -- that the engine's computer uses.
RepairPal Certified shops can diagnose and repair your 2002 Hyundai XG350. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.