An electrically operated valve comprising: a valve body; a driver configured to move the valve body along a first axis; a rotation shaft configured to rotate the driver around the first axis; characterized in that the electrically operated valve further comprises: an angle sensor; a permanent magnet member disposed on the rotation shaft and configured to rotate with the rotation shaft; wherein the angle sensor is disposed above a permanent magnet included in the permanent magnet member and configured to detect a rotation angle of the permanent magnet; wherein the electrically operated valve further comprises a yoke configured to cover a portion of the permanent magnet and optionally a portion of the angle sensor; and a case configured to contain the permanent magnet member, wherein an end wall of the case is disposed between the angle sensor and the permanent magnet member, wherein: the yoke includes a first yoke configured to cover a portion of the permanent magnet; and the first yoke is configured to cover a side surface of the permanent magnet, wherein a boundary region between a north pole and a south pole of the side surface of the permanent magnet is exposed without being covered by the first yoke. a valve body; a driver configured to move the valve body along a first axis; a rotation shaft configured to rotate the driver around the first axis; characterized in that the electrically operated valve further comprises: an angle sensor; a permanent magnet member disposed on the rotation shaft and configured to rotate with the rotation shaft; wherein the angle sensor is disposed above a permanent magnet included in the permanent magnet member and configured to detect a rotation angle of the permanent magnet; wherein the electrically operated valve further comprises a yoke configured to cover a portion of the permanent magnet and optionally a portion of the angle sensor; and a case configured to contain the permanent magnet member, wherein an end wall of the case is disposed between the angle sensor and the permanent magnet member, an angle sensor; a permanent magnet member disposed on the rotation shaft and configured to rotate with the rotation shaft; wherein the angle sensor is disposed above a permanent magnet included in the permanent magnet member and configured to detect a rotation angle of the permanent magnet; wherein the electrically operated valve further comprises a yoke configured to cover a portion of the permanent magnet and optionally a portion of the angle sensor; and a case configured to contain the permanent magnet member, wherein an end wall of the case is disposed between the angle sensor and the permanent magnet member, wherein: the yoke includes a first yoke configured to cover a portion of the permanent magnet; and the first yoke is configured to cover a side surface of the permanent magnet, wherein a boundary region between a north pole and a south pole of the side surface of the permanent magnet is exposed without being covered by the first yoke. the yoke includes a first yoke configured to cover a portion of the permanent magnet; and the first yoke is configured to cover a side surface of the permanent magnet, wherein a boundary region between a north pole and a south pole of the side surface of the permanent magnet is exposed without being covered by the first yoke.