A security guard helped himself to more than £1000 of alcohol at a warehouse he was supposed to be protecting.

Andrew Campbell was the only employee on duty that weekend at transport and storage firm Barbour European.

Stirling Sheriff Court heard he thought he would get away with his crime because the building's CCTV was faulty.

It had corrected itself, however, and was in fact recording his every move.

Adrian Fraser, prosecuting, told the court Campbell, 32, started his shift at 6.30pm on Friday, November 13.

Mr Fraser said: "He was the only member of staff on site and he would have been the only member there for the weekend, and he'd been told at the start of his shift that the CCTV system wasn't working. However, that turned out not to be the case."

About 8.40pm on the Friday night, the system recorded Campbell walking on to the warehouse floor, doing a walk-around and then stopping at a pallet and pulling a box open before selecting "a number of bottles of spirits", resealing the box, and going back to his office.

He did the same thing again at about 9.50pm the next night.

Mr Fraser said: "To complete the weekend, he was seen on CCTV on the Sunday stopping a pallet and again removing bottles of spirits from a box he had opened."

The depute fiscal said that on the Monday, an employee at the warehouse noticed a box with a lid that appeared to have been "taped down in a strange manner".

Mr Fraser said: "When he opened this box, it was almost completely empty.

"A stock check revealed at least 40 bottles of spirits were missing, worth a total of £1069."

CCTV was checked but when police went to Campbell's home they found he had moved.

He was eventually arrested on February 16 but none of the spirits were ever recovered.

Campbell, of Raploch, Stirling, pleaded guilty to theft from Barbour European's base at the city's Broadleys Industrial Park.

Sheriff Wyllie Robertson deferred sentence until May 18 for background reports.

Solicitor advocate George Pollock, defending, said he would reserve his speech in mitigation for the sentencing hearing.

Download: The STV News app is Scotland's favourite and is available for iPhone from the App store and for Android from Google Play. Download it today and continue to enjoy STV News wherever you are.