Look up some thunderstorm sounds online and play them at a low volume on a speaker while playing with your dog and giving it treats and toys. Gradually increase the volume of the sounds and continue to reward your dog. The goal is to teach your dog that thunderstorms are actually a happy and fun occasion.