A couple were horrified to return home from a night out to find two men burgling their home.
The pair arrived back at their house in Churwell to find Ibrar Hussain and another man rifling through property.
Leeds Crown Court heard how the couple had been walking home from a nearby railway station when they heard a burglar alarm going off.
Christopher Jackson, prosecuting, said the couple had joked with each other about hoping it was not their home, in New Village Way, that had been targeted.
As they turned into their street, at 10.30pm on September 14 last year, they became concerned at seeing the hallway light on.
Hussain could be seen through a window going through a chest of drawers. Another man was also inside the property but could not be seen clearly.
The burglars ran from the property and disappeared down an alleyway. They had smashed patio doors to gain access to the property, causing £500 worth of damage.
Neighbours contacted police after they saw two men acting suspiciously near a car.
The vehicle was traced to the Bradford area and Hussain was arrested as he fitted the description of one of the men in the burglary. He later pleaded guilty to burglary.
Mr Jackson said it appeared as though the property had been deliberately targeted as Hussain and his accomplice had travelled around 12 miles to the area. He said the owners no longer felt safe in their home.
Franklin Zakers, mitigating, said Hussain, of Grantham Terrace, Bradford, had worked as a service advisor for a Mercedes-Benz truck and van business since 2006.
Mr Zakers said: “It is hard to understand why a young man would allow himself to get involved in this situation.”
The barrister said Hussain had agreed to drive his friend to the Churwell area but did not realise it was for criminal purposes until they arrived. He said his client agreed to take part in the burglary as he was afraid of his friend.
Hussain was given a 16-month prison sentence, suspended for two years.
He was also ordered to do 200 hours unpaid work and told to pay £500 compensation.
Judge Jonathan Rose said: “You will perform you punishment in the community where I hope you will wear your shame every day.”