You might feel dehydrated, and light-headed.
See a doctor is you develop blisters, fever, or chills (viaInsider).
Meanwhile, preventing sun poisoning is all about protection.

Limit your sun exposure between 10 a.m. and 4 p.m., and wear protective clothing.
