The anhydrous hydrogen fluoride moisture online detection and automatic sampling system is equipped with a platinum electrode on the quantitative tank. The conductivity of the medium can be detected online by connecting the online moisture analyzer to the platinum electrode. The conductivity and moisture content can be converted into formulas to obtain real-time moisture content monitoring of the medium. The system has an automatic quantitative sampling function and is an integrated equipment for automatic sampling and online moisture detection of anhydrous hydrogen fluoride. The product is safe and environmentally friendly, and the split operation provides great protection for personnel safety.