Graham Cooper has been ordered to carry out 200 hours of unpaid work for producing 34 cannabis plants.
The 39-year-old, of Harewood Walk, Denton, pleaded guilty to the charge after the plants were discovered back in January 2019.
Magistrates ordered him to pay £85 court costs and a victim surcharge of £85.
They ordered the cannabis plants, equipment and paraphernalia to be forfeited and destroyed.

Greens announce Hannah Spencer as candidate for Gorton and Denton by-election
Jackie Pearcey selected to stand for Liberal Democrats in Gorton and Denton by-election
SK Dance & Musical Theatre Moves Into New Home at Tower Mill
Review: REMEMBER THEIR NAMES, THIS ONE WILL LIVE FOREVER - Droylsden Academy presents ‘Fame: the Musical’