The invention solves the problem of accurately and stably measuring the depth of boreholes in uneven and high-temperature environments, thereby effectively reducing the impact of borehole environment on blasting quality and effectively controlling the effects of blasting operations.