Magnetic fluid is first introduced into the traditional cantilever-beam senor. Based on the property of the cantilever-beam and the novel controllable mag-viscosity of magnetic fluid, the output of cantilever-beam sensors is under control so that the controllable output of the sensors can be realized. The mathematical model of the sensors is established and analyzed. The dynamic control function and the following educational results, which include the two curves of the displacement ratio and phase function with the different damping ratio and frequency ratio, are obtained based on the model. The result shows that it is valid to realize the controllable output of the sensors by controlling the viscosity of the magnetic fluid, and finally the expanded measurement range can be realized.