Every available space, including the hall and stairs, was used to grow cannabis in a converted South Yorkshire house, Sheffield Crown Court has heard.
Police officers found Agim Pashaj living in the kitchen of the semi-detached house on Tooker Road, Rotherham, when they executed a search warrant, on November 29, last year.
Prosecutor Laura Marshall said that 22kgs of the drug, valued at £220,520, was discovered, and the set-up had a potential annual yield of 100kgs.
Suspicions were aroused when residents complained about low power and the electricity company notified police after they found electricity had been abstracted from the property.