Cannabis with a street value of up to £10,000 was discovered by police after they were called to a burglary.
Aron Chadwick grew the plants at his home in Victory Road, Beeston, but his illicit production was rumbled after his door was kicked in by two men shortly after he left the two-bedroom terrace on his motorbike at 7.53 pm on Wednesday 25 October 2017.
Police were called to the burglary by a member of the public who witnessed the two intruders running out of the house with a bag.
Inside, officers found cannabis being grown in the first-floor bedrooms using hydroponics equipment and drug dealing paraphernalia in the living room, including cling film wraps containing cannabis and digital scales.
Mobile phones, computers and other electronic equipment were also seized.
Twenty-seven-year-old Chadwick was seen riding on to the road on his motorbike while officers were there but he sped off after seeing the police at his home.
However, he later contacted the police and arranged to hand himself in the next day.
Analysis of one of his mobile phones showed evidence of drug dealing.
A drugs expert witness gave evidence that the 13 plants seized would have a street value of up to £10,000 and that the amount recovered was too high to be considered solely for personal use.
Chadwick admitted possession with intent to supply a Class B drugs at Nottingham Crown Court on Monday (6 January).
He had also admitted production of a Class B drug and possession of a Class B drug at a previous hearing at Nottingham Magistrates’ Court.
In total he was sentenced to 12 months in prison, suspended for 12 months.
Detective Constable Anna Haynes, of Nottinghamshire Police’s burglary team, said: “Growing cannabis is not only illegal, it puts people at greater risk of being victims of burglary and home invasions.
“This case was just one example of a number of incidents that we attend which are reported as burglaries but also lead to further investigations into drug production and supply.”