Light stays on for about 2 mins and goes off when driving, and internal cab alarm stays on when driver side door is open with engine off.
Internal Cab Alarm on 1997 Ford F-150
One of your door ajar swtiches could be sticking. Spray lubricant into each door latch. Open and close the doors regularly. - see if working in lubricant helps. Other than that, a diagnostic tool must be used to find and set up repairs on this truck.