1996 Ford F-150

I keep getting aa engine warning light constantly, and now occasionally. It has been taken to the Ford dealer numerous times. This sensor is bad, PCM is bad, oxygen sensor bad, etc. All I seem to do is write checks with no real results. What next! I also have the overdrive light flashing for 2-5 miles then it goes out. Whats with that, this in new. Oh! this truck has less than 40,000 miles on it.

Have the OBD codes read (free) at an autoparts store and post them back here…

Continue to drive it (instead of having it towed) with the flashing OD light and you will need a new transmission.
The dealer you are taking it to clearly doesn’t know how to correctly troubleshoot. You need to find a good dealer or independent mechanic.