Police tipped off by members of the public detected a strong smell of cannabis through the letterbox of a flat in Acton, a court has heard.
When Nathan Bray, 24, returned later the same day to the property in Kedington Court in August last year, officers spoke with him and he admitted growing the illegal drug.
Ipswich Crown Court heard how Bray, now of Harpers Estate, Nayland, described it as a “small set up.”
Prosecutor Michael Crimp said that Bray had been co-operative and led officers to a locked room on the first floor where he was cultivating seven cannabis plants inside a tent with the aid of lighting and heating.
Police discovered a further 15 plants in an airing cupboard at the flat, together with a quantity of cannabis leaves. Bray had admitted selling some of the cannabis from previous crops, said Mr Crimp.
Bray, who pleaded guilty to the production, possession and supply of a class B drug, had been using cannabis since the age of 13 said Greg Perrins, defending.
Mr Recorder Guy Ayers sentenced Bray to eight months imprisonment suspended for two years and ordered that he be placed under Probation Service supervision for two years.