A hydrodynamic model of using quartz tuning forks (QTFs) for density and viscosity sensing, by measuring the resonance frequency and quality factor, has been established based on the cantilever beam theory applied to the atomic force microscope (AFM). Two examples are presented to verify the usability of this model. Then, the Sobol index method is chosen for explaining quantitatively how the resonance frequency and quality factor of the QTFs are affected by the fluid density and viscosity, respectively. The results show that the relative mean square error in viscosity of the eight solutions evaluated by the hydrodynamic model is reduced by an order of magnitude comparing with Butterworth-Van Dyke equivalent circuit method. When the measured resonance frequency and quality factor of the QTFs vary from 25,800-26,100 Hz and 28-41, the sensitivities of the quality factor affected by the fluid density increase. This model provides an idea for improving the accuracy of fluid component recognition in real time, and lays a foundation for the application of miniaturized and cost-effective downhole fluid density and viscosity sensors.Sensors 2020, 20, 198 2 of 12 lithium niobate tuning fork were 10.48% and 2.89%, respectively. Although it is a physical fact for tuning fork sensors that the error on density is smaller than that on viscosity [22], we can still reduce the viscosity error to meet the measurement requirements.Tuning fork sensors, microcantilever beam, AlN resonator, torsional resonators and so on, can all be used as sensitive components for the D-V sensor [23][24][25]. On the one hand, quartz tuning forks (QTFs) studied in this paper have high Curie temperature, good stability and high accuracy, which is suitable for downhole high temperature and high pressure environment, and, on the other hand, a millimeter-sized QTF can be integrated in small-scale measurement platforms for downhole deployment. In addition, the QTFs are low-cost and commercially used as frequency standards in watches, working at 32.768 kHz. The QTF is widely used in gas sensing based on photoacoustic spectroscopy and photothermal spectroscopy [26][27][28], and scanning probe microscopy applications such as atomic force microscopy (AFM) [29][30][31] and near-field scanning optical microscopy (NSOM) [32][33][34]. In order to estimate the density and viscosity of a liquid at the same time, the hydrodynamic model based on the work of Sader, J.E. [35] for the atomic force microscope (AFM) is established, and two examples are verified by using this model.