Not easy, but I have a friend who did this by reaching back out to his old professors and colleagues, figuring out what they needed, and ended up doing a swe project in his old lab and built that into a consultancy which does tech partnering for science.