Why does food we eat affect our heart rate?

because the sugar goes through your vains into your blood the blood drives to your heart and affects our hearts