how to shield arduino uno from external mag fields?

The question is what value of pull up resistor did you use?

Magnetic fields are no problem, electro magnetic waves are another matter.