Haunted Hot F150

2006 Truck is haunted. On a hot day the truck locks and unlocks as well as the headlights come on before the sun goes down while the vehicle is parked. Also the locks click sometimes while driving. The passenger side door can not be locked now…What’s going on is it related to the heat of the day?