These vehicles have alot of problems with the cooling fan clutch and wiring which sets this code, that is the most likely cause. Inspect for broken wires in the harness near the fan clutch. Replace the harness, If wiring is OK, check for 5 volts on the Gray wire from the Powertrain Control Module. If the voltage is low, check circuit for a break or short to ground. Let me know if you have questions, thanks.
P0526 Cooling Fan Speed Sensor Circuit Malfunction - With Automatic Transmission