A digital MR sensor with a high magnetoresistance ratio is provided. The
MR sensor includes a first magnetic element; and a second magnetic
element at least a part of which is resiliently deformable so as to
contact with or be separated from the first magnetic element according to
a direction of a magnetic force generated between the first and second
magnetic elements while the second magnetic element is magnetized under
influence of an external magnetic field.