 /* BEGIN:  Temperature Sensor - loop */
   OutputTemperature();
 /* END:  Temperature Sensor - loop */
+
+/* BEGIN:  HeartRate Sensor - loop */
+  if(millis() > lastHeartRate) {
+    interrupt();
+    lastHeartRate = millis()+600;
+  }
+/* END:  HeartRate Sensor - loop */
+
 }
 
 /* BEGIN:  Axis sensor - functions */

	delay(5000);
	arrayInit();
	Serial.println("Heart rate test begin.");
	attachInterrupt(0, interrupt, RISING);//set interrupt 0,digital port 2
/* END:  HearRate Sensor - Setup */
}



/* BEGIN:  HearRate Sensor - Header */
  #define LED 4//indicator, Grove - LED is connected with D4 of Arduino
  unsigned long lastHeartRate = millis(); 
  boolean led_state = LOW;
  unsigned char counter;
  unsigned long temp[21];
