The relationship between electrical properties of superconductor and externally applied magnetic field was studied to develop a magnetic field sensor. The electrical resistance of the superconductor was increased by applying external magnetic field and even after removal of the magnetic field. This behavior was related to the magnetic flux trapped in the superconductor, which penetrated through the material by the external magnetic field. Some portion of the superconductor was changed to a normal state by the trapped magnetic flux. The appearance of the normal state yielded to enhance the electrical resistance.