Mark Rotchell, 30, of Carnoth Road, was stopped by police as he drove along Shafton High Street in November 2019 - and officers immediately noticed a ‘strong’ smell of cannabis.
After searching his car they found seven ounces of the drug - holding a potential street value of up to £2,000.
Rotchell was then arrested and following a home search officers discovered he was using his upstairs bedrooms to grow cannabis - and after searching his phone they realised he was also selling ketamine.
He admitted to charged of possessing cannabis with intent to supply, producing cannabis and offering to supply ketamine and was sentenced at Sheffield Crown Court on June 15 to 30 weeks imprisonment, suspended for 18 months - he was also handed a six-month curfew which will be implemented by an electronic tag.
Sergeant Richard Wilson said: “This is a great example of officers being in the right place at the right time.
“We know some people like to argue drugs are ‘harmless’, but this simply isn’t the case.
“We often see vulnerable people are exploited as part of the distribution process and the impact can be devastating.”