What year truck?

99-02 tend to have switch failures and 03-06 have encoder sensor problems.

Then again, it's a machanical and electrical system so anything could be wrong. This is why it needs a scan.