The oxygen and paraffin reaction produces water and carbon dioxide is released. Therefore, the air volume decreases. Candle needs oxygen to burn so as it burns oxygen depletes, the candle goes out and air cools. The volume of the air decreases and water rises.