To avoid hydroplaning while driving in rainy conditions, you should:

When driving too quickly in wet conditions, your tires may lose all contact with the road surface. Loss of traction will cause the vehicle to ride on top of the water, which is called "hydroplaning." The best way to prevent this from happening is to drive more slowly in rainy or wet conditions than you would when driving during ideal weather conditions.
DMV Writen Test