Complex sentence: Air warmed by the heat from warmed interior surfaces is retained in the building by the roof and wall; the air that is warmed near the ground is prevented from rising indefinitely and flowing away.
Split into simpler sentences: Air warmed by the heat from hot interior surfaces is retained in the building by the roof and wall. The air that is warmed near the ground is prevented from rising indefinitely and flowing away.