A detecting device includes a viscoelastic magnet obtained by kneading and
molding a magnet material and a viscoelastic material and a magnetic-flux
detecting unit that detects a change in a magnetic flux density vector
due to deformation of the viscoelastic magnet.