Police uncovered a cannabis factory in Wyberton when they went to investigate reports of a house burglary, Lincoln Crown Court was told on Thursday.
Officers arrived at the property in Tytton Lane East to find the upstairs of the house was being used to grow the illicit drug.
Phil Howes, prosecuting, told the court that the electricity supply had been diverted to avoid paying for heating and lighting the plants.
He said: “This set up was relatively sophisticated.”
Some 62 plants were found and as a result Stuart Higgins, who lived at the address with his mother, was arrested.
Higgins, 44, currently of no fixed address but formerly of Tytton Court, Tytton Lane East, Wyberton, admitted charges of producing cannabis and illegally abstracting electricity.
Edna Leonard, defending, said Higgins sank into debt after he was made redundant from his job and agreed to the cannabis farm being set up as a way of clearing some of the money he owed.
She said: “He was approached to do this. He was supposed to get half of the profits. He was in debt to these people to the tune of £6,000.”
Miss Leonard said that Higgins had applied for 500 jobs without success and he and his mother were subsequently evicted from their home.
She said: “They are now living off the charity of friends and sofa surfing.”
Higgins was given a 12-month jail sentence suspended for two years with 12 months supervision and 200 hours of unpaid work.