Question about taking a program from one Arduino board to another board.

Not sure what a reed switch will do, have these things got magnets on them? Even so you will not get them to switch a reed. If they do have magnets on them then you could use a compass sensor called a magnetometer.