Replace the switch if it is faulty. Common fault.
See
http://www.mirez.co.uk/AlarmProbs.htm
Similar layout but Mondeo. My friend had an extended warranty on his Ford but found that it specifically excluded the bonnet switch, apparently because they fail so often.
ChicksFan
September 2012