After his parents go to bed, Sebastian Cocioba usually retires to the third bedroom of the family apartment, where he has built a laboratory.

There, amid the whir of climate-controlling fans and equipment harvested from eBay, he is working on what he hopes will one day become a lucrative career. Mr. Cocioba, 25 years old, is a plant hacker.

“I...