Gases enter and leave tracheae through tiny pores called spiracles on the body surface. Spiracles are opened and closed by valves. When spiracles are open, water vapour can evaporate from the insect. So most of the time the spiracles are closed to prevent water loss but open occasionally for gas exchange.