The correct option is A Oersted
Oersted in the year 1819, discovered that an electric current generates a magnetic field encircling it. Oersted's experiment that when an electric current is passed through a conducting wire, a magnetic field is produced around it. The presence of magnetic field at a point around a current carrying wire can be detected with the help of a compass needle.