How does a terrarium work?
The plants in your terrarium should be watered with some water before being enclosed/sealed up. Based on the concept of the water cycle, the water will evaporate and condense on the cover of your terrarium, which then drips down into the soil. The water will be taken up by the plant and the cycle continues.
A closed terrarium is a closed ecosystem just on a much smaller scale. The supply of carbon dioxide in the terrarium air is very small because of the limited volume of air. Therefore, unless the terrarium contains animals to provide carbon dioxide or microbes break down large amounts of organic matter in the soil and release carbon dioxide, the plants in a sealed terrarium cannot gain significant dry weight. They would basically refix the same…
It usually means that he sees something that interests him, or that he feels a little claustrophobic. Bearded dragons also love climbing up terrarium walls, to get more heat. (And just to have fun) If he is a male or female, it doesn't matter. It depends on his health and how big his terrarium is. Hop this helped! :)