Abstract:Soil water flux measurement is very important in agriculture, but there is currently no mature measurement equipment. Through technical analysis, a soil water flux sensor was designed using Pyboard control unit, MicroPython programming language and ADS1256 analogtodigital conversion chip. By using Python software and Matplotlib functions in the Math library, the host computer software was designed. Through sensor function tests, soil thermal diffusion coefficient, volumetric heat capacity, thermal conductivity, and soil water flow measurement can be achieved. Four kinds of soil samples were selected for testing, and the calculated values were obtained according to the maximum dimensionless temperature difference (MDTD) method and the ratio (Td/Tu) method, which were compared with the actual water flow. The test results showed that the system had high measurement accuracy and stable operation. In the application of the method, the linearity between the calculation results of the two algorithms and the actual values was good. The determination coefficient R2 of the MDTD method of the four soils were 0.9677, 0.9798, 0.9780 and 0.9647, and the determination coefficient R2 of the Td/Tu method were 0.9845, 0.9985, 0.9989 and 0.9986, indicating that the system had good measurement accuracy. Through adaptability evaluation, the correlation between the calculated values of Td/Tu and actual values in the four soils was better, the error was lower, and the calculation results were better than the MDTD method, which provided guidance for the selection of system algorithms.