The gut microbiome can impact your digestion, immune system, and even your mood. Here’s how it works and what you can do to keep it healthy.