Ryan Long’s offending involved one plant and three seedlings, at an address in Mexborough from July, and 12 plants at an address in Conisbrough, between June and September, both last year.
Long, 25, of Hazel Road, New Edlington, Doncaster, pleaded guilty to two counts of producing the class B controlled drugs, at Sheffield Crown Court on Monday, June 8.
Robert Sandford, prosecuting, argued the Conisbrough cannabis was being produced for sale but Long claimed it was only for personal use so he did not have to use street-dealers.The case was adjourned until July 10 for a pre-sentence report and a special hearing to determine if Long grew the drugs for a commercial purpose.
On Friday, Judge David Dixon told him: "I can't be sure that you're doing it for anything other than yourself.
"You grew a small amount to start with and then a second amount after you had been caught the first time."
Nick Hayles, mitigating, said Long deserved credit for his early guilty plea and because he had changed his lifestyle "considerably" by getting a job after a "bad run in 2018/19."
Judge Dixon sentenced him to 12 months, suspended for 18 months and ordered him to carry out 80 hours of unpaid work with rehabilitation activities.
He told Long: "You're on a knife-edge. If you do something wrong again, you could get locked up."