Do not overcrowd the pan when frying the shrimp. Fry in batches. Overcrowding the pan makes the oil temperature drop and will result in undercooked, soggy shrimp. When draining, make sure the shrimp are in one layer—not stacked on top of each other.