This device comprises one or two permanent magnets arranged to rotate together with the ultrasonic vibrating element or reflection mirror, and a magnetic sensing element such as coil, Hall element and magneto-resistive element for sensing the rotation of the permanent magnet.