Use a candy thermometer, which can be clipped on the pan. This way, you can monitor the oil temperature throughout the cooking process and adjust the heat as needed.