Turn to non-corrosive metals such as aluminum and stainless steel. Keep the area around the metal surface dry. Use drying agents and moisture barrier products. Make sure underground piping is laid in a layer of backfill, such as limestone. Make sure any electrical components are cleaned regularly.