The article describes a method developed for determining the degree of damage to wheat grain caused by smut fungi, which makes it possible to determine its non-toxic level, to increase the measurement accuracy and reliability of the results obtained, to ensure ease of processing the results, to prevent further spoilage of wheat grain and ensure its safety without deterioration in quality. Since smut reduces yield and quality of grain and grain products, improving the sanitary condition of grain raw materials is an urgent problem. It was found that the developed method can significantly reduce the cost of the analysis (by 300-320 rubles), reduce the time for the analysis by 20-25 minutes, and reduce the measurement error from 15% to 10%.