What is the basis function of a galvanometer

A the transformation of mechanical to electrical

B the change in strength of a magnetic field

C movement caused by a change in temp

D rotation of a wire loop in a magnetic field