To prevent corrosion on battery terminals, it is important to keep the flashlight dry and avoid exposing it to moisture. Additionally, you can apply a small amount of petroleum jelly to the battery terminals to help prevent corrosion.