Answer:
there are many way but this may help
Explanation:
The tendency of a magnet to align itself in a north-south direction, so giving a magnetic compass, was discovered by the Chinese about 2000 years ago. Then in 1600 William Gilbert published De Magnete, in which he concluded that the earth behaved as a giant magnet. ...