In order to solve the intensifying problem of heavy metal pollution of soil in mining areas, a method for monitoring air quality and soil environment in mining areas based on the Internet of Things is proposed. Using meta-analysis method and health risk assessment method, the impact of mining on soil heavy metal content in Southwest China was quantitatively analyzed, and the relationship between soil heavy metal value and its potential influencing factors was discussed, as well as the heavy metal pollution, ecological risk, and health caused by soil mining activities. Risks were assessed. The results showed that artificial and oral intake were the main modes of soil heavy metal exposure, with the highest daily intakes for noncarcinogenic risk children and the highest daily intakes for carcinogenic risk adult females. The noncarcinogenic risk (HQ>1) of soil As and Pb exposure to children was 3.74 and 1.44, respectively. The carcinogenic risk values of As, Cd, Cr, and Ni in soil were all higher than 10-6, indicating that the carcinogenic risk was within the tolerance range of human body. Children were exposed to the combined noncarcinogenic risk (
HI
=
3.83
), and the risk values of the three types of recipients were
1.19
×
10
−
4
,
1.21
×
10
−
4
, and
1.06
×
10
−
4
, respectively. The correlation between heavy metal content and environmental factors was obtained. It is verified that the system in this paper can effectively monitor the meteorological environment and soil environment, and at the same time, it reveals the pollution law of heavy metals in the soil of the mining area, which provides supporting conditions for future mining and heavy metal pollution management.