Here's the proper approach:
1. Get the diagnostic trouble code (DTC): This is crucial. You need to know *why* the light is on. You have a few options:
* OBD-II Scanner: This is the best option. You can buy a relatively inexpensive OBD-II scanner at most auto parts stores. Plug it into the OBD-II port (usually under the dashboard) and it will read the codes. The codes will be numbers (e.g., P0171, P0420).
* Auto Parts Store: Many auto parts stores will read the codes for free. Just bring your truck in.
2. Research the code(s): Once you have the code(s), search online (e.g., Google the code) or use a repair manual to find out what the code means. This will tell you the likely cause of the problem.
3. Fix the problem: This is the most important step. Based on the code and your research, repair the issue. This might involve replacing a sensor, fixing a leak, or something more significant.
4. Clear the code (after the repair): *Only after you've fixed the problem* should you clear the code. Many OBD-II scanners have a "clear codes" function. Some auto parts store scanners will do this for you as well. After clearing the codes, drive the truck for a while (often a few drive cycles) to allow the computer to monitor the system and confirm the problem is resolved. If the problem is fixed, the light shouldn't come back on.
Important Considerations:
* Ignoring the light is risky: Continuing to drive with a check engine light on can cause further damage to your engine.
* Don't just disconnect the battery: While disconnecting the battery for a period of time *might* temporarily turn off the light, it won't fix the underlying problem. The light will likely come back on.
In short: Find out *why* the light is on, fix that, *then* clear the code. Don't just try to reset the light without addressing the root cause.