I recently had a warning on my 2011 F-150 EB saying the rear door was open (it's not). I read on this forum that spraying WD-40 in the latch should take care of the problem, and it did not. Then I was going to replace the door sensor switch, only to find that the entire assembly (latch, lock, door sensor, etc) is one unit, so I replaced that. My dash is still saying the door is still open. The local dealer suggested (over the phone) to disconnect the battery for 5 minutes and that should clear the memory. It's still on.
With 86,000 miles on the truck I hate to take it in for them to troubleshoot, especially after I replaced a $100 part. It wouldn't be a big issue other than the interior lights stay on for 10 minutes after I park it, and sometimes I have stuff in the back seat that I don't want to tempt people with. Also, leaving for work before daylight creates a reflection on the windows that makes it hard to see sometimes.