When someone starts exercising,how does their heart know that it should beat faster?

Which gas is removed from the air you inhale?
Which gas is added to the air you exhale?

I will be happy to critque your thinking.