The size of the openings in the leaves through which gases move in and out is controlled by the?

They are controlled by the guard cells.