this usually means the bonnet is open, otherwise it unlocks itself straight away if another door is open,
obviously you would notice if the bonnet is open, so the sensor sounds like its knackered by the sounds of things, would recommend trying to replace that first, this is located next to the near side headlight on, if i remember correctly its bolted using the same bolt as the light, cant miss it,