POLICE who entered a Wrexham flat found cannabis plants with an estimated potential yield of £20,000 in a special growing room.
Ricky Lee Davies, of Blackley Hall, Gresford, admitted cultivating the class "B" drug.
He was jailed for 266 days – which meant his immediate release because of the time he had been on remand.
Judge Niclas Parry said Davies, 25, had offended while on bail but had paid the price for that by being remanded in custody.
“People who produce cannabis make a deliberate decision to flout the law,” he said.
They should always expect custodial sentences but as he had already served 113 days in custody for the offence the judge said he considered it was a sufficient penalty.
His sentence would mean his immediate release, the judge said.
Paulinus Barnes, prosecuting, said police went to Blackley Hall to do a welfare check on Davies’ partner.
They found an improvised door in the kitchen leading to a room built with insulated boards and found about 140 cannabis plants and a growing system involving fans and thermometers.
While officers were there, the defendant arrived home and was arrested. He said he knew what it would be about.
Included in the seizure was a mother plant from which others had been taken and grown on as cuttings. The estimated potential yield was 2.1 kilogrammes with an estimated street value of £20,000.
Myles Wilson, defending, said a defence expert put a lower figure on it.
He suggested Davies should receive a prison sentence which due to his time on remand would lead to his immediate release.