Ground worker Kevin Fenton converted the loft of his home in Dawlish, Devon into a miniature cannabis farm with lights, heaters, extractor fans and a power lead channelled through a cupboard in his bedroom.
He was found with 26 growing plants and more than £4,000 worth of harvested drugs when police raided his home in February.
Fenton, aged 41, of First Avenue, Dawlish, admitted production of cannabis and was jailed for eight months, suspended for two years and ordered to pay £435 costs by Judge Phillip Wassall at Exeter Crown Court.