Heart rate monitoring is a vital aspect of maintaining heart health. People from different age groups have different ranges for maximum and minimum values of heart rate, the monitoring system must be compatible enough to tackle this scenario. In this paper, an IoT based system has been implemented that can monitor the heartbeat from the output given by a hardware system consisting of a NodeMCU and pulse sensor. Further, an alert system is added which is executed if the heartbeat goes below or above the permissible level given in the devised algorithm. The alert message is received by the doctor through a mobile phone application. By using this prototype the doctors can access the heartbeat data of the patient from any location. The nurses or the duty doctor available at the hospital can monitor the heart rate of the patient in the serial monitor through the real-time monitoring system. The real-time monitoring is done via Adafruit, this platform is more secure to store the information and uses MQTT protocol which has lots of advantages over others. IFTTT protocol is also used to create conditional statements called applets. The prototype is integrated with GPS technology to monitor the live location of the device from any part of the world and uses a local server to provide security, privacy and low latency. The heartbeat data and other personal details of the patient are stored in the cloud, this can be utilized for future studies on the health condition of the patient. The prototype is realized using NodeMCU, pulse sensor, Adafruit, and Blynk cloud.