Daf 45 lf 2011

I have Daf LF 45 after long hot drive i stop to load up put on my hand brake and it came up on my dash hand brake not applied . It was the same when i got back to the yard i shut the door it turned off but it drained the battery’s over night any help would very much appreciated

On later ones i understand it is often the door sensor at fault.