Use of IoT and Artificial Intelligence (AI) in the mining industry for two critical areas