Police stumbled on a £10,000 drugs factory while searching for a wanted man, a judge heard.
He was not at the address but the behaviour of Dean Gould, who was there, suggested he had something to hide, Wolverhampton Crown Court was told.
The hunch paid off as the officers uncovered a cannabis farm in the loft on December 8, revealed Mr Howard Searle, prosecuting.
He continued: “They were looking for somebody else but the demeanour of the defendant aroused their suspicion.”
The 20 plants were being cultivated under a specialist hydroponic system that had cost £2,000 to install and were capable of producing £10,000 worth of drugs, the court heard.
Mr Christopher O’Gorman, defending, said: “When the police attended that property they were in search of a named individual who they thought might be found there.
“That person is of a higher level of criminality that Mr Gould, who certainly does not have £2,000 to spend.
He added: “The reality of the situation is that he was involved as a result of offering assistance in the enterprise to that individual.”
Gould from Fullbrook Road, Delves, Walsall admitted producing cannabis and was given a 42 week jail term suspended for two years with 200 hours of unpaid work.