How the gut senses its content