How do guard cells regulate opening and closing of stomatal pores?

By increasing and decreasing osmotic potential of cell sap of gaurd cells the opening and closing of stomata take place.