Within five years, consumers may begin using a device smaller than a flip phone to monitor the air, test their food or diagnose what germ caused an upset stomach. And the root of this capability points to what now is only for scientists—genome sequencing.