How does the guard cells regulate the process of opening and closing of stomatal pores?

Opening and closing of stomata occurs due to the changes in the turgor pressure of the guard cells. When guard cells are turgid, stomatal pores are open, while in flaccid form, the stomatal pores are closed.