It decomposes to barium oxide when heated in a vacuum . It reacts with carbon dioxide to make barium carbonate . Barium hydroxide decomposes to barium oxide when heated to 800 Â C. Reaction with carbon dioxide gives barium carbonate .