Today's world witnesses increased number of mine accidents caused due to explosion and fire. When the methane gas concentration goes high, it causes fire leading to explosion. In this paper, an IoT based system is proposed to ensure safety to the mine workers in underground collieries. The proposed system consists of DHT-11 sensor to monitor the temperature and humidity of coal mines. When the gas sensor detects high methane gas level, blower is activated so that the atmospheric air can be pumped in from outside to dilute the gas concentration. The smoke sensor is also used to detect the fire. In case of any abnormality in any of these parameters the buzzer sounds. All these parameters are uploaded to the cloud directly so that the people at the control station can be well informed of the underground mines. © Published under licence by IOP Publishing Ltd.