The technology of coal-rock interface recognition is the core of realizing the automatic heightening technology of shearer’s rocker. Only by accurately and quickly identifying the interface of coal and rock can we realize the fully automatic control of shearer. As the only one used in the actual detection of coal mining machine drum cutting coal seam after the thickness of the remaining coal seam detection method, natural γ-ray has a very practical advantage. Based on the relationship between the attenuation of the natural γ-ray passing through the coal seam and the thickness of the coal seam, the mathematical model of the attenuation of the natural γ-ray penetrating coal seam is established. By comparing the attenuation intensity of γ-ray with or without brackets, it is verified that the hydraulic girders will absorb some natural γ-rays. Finally, this paper uses the ground simulation experiment and the field experiment to verify the correctness of the mathematical model and finally develop the natural γ-ray seam thickness sensor. The sensor has the function of indicating the thickness of the coal seam, measuring the natural γ-ray intensity, and storing and processing the data.