The invention provides an anti-pipe-blocking detection device, a spraying device, a pipeline material recycling method and a pipeline cleaning method. The anti-pipe-blocking detection device comprisesa valve body, an adjusting assembly and a proximity switch; the valve body is provided with a passage for connecting a to-be-detected pipeline and a branch communicating with the passage; the adjusting assembly is assembled in the branch, and the adjusting assembly comprises a piston matched with the branch, an elastic body acting on the piston and an end cover connected to the end of the branchin the mode of being capable of moving relative to the branch; and the proximity switch is assembled on the valve body and is arranged corresponding to the piston. The anti-pipe-blocking detection device is simple in structure, a related hydraulic system does not need to be additionally arranged, the pressure in the to-be-detected pipeline can be continuously adjusted, the pressure relief can be conducted on the pipeline in time when pipe blockage occurs, and pipe explosion accidents are avoided; according to the spraying device, residual materials in the pipeline can be collected back to a material barrel, and materials are saved; and the pipeline can be cleaned, the damage to devices due to material solidification is avoided, and therefore the service life is prolonged.