KY-039 Heartbeat Sensor Module with Arduino


Welcome to the world of biometric sensing with Arduino! In this guide, we’ll explore How to Interfacing KY-039 Heartbeat Sensor Module with Arduino. The KY-039 module enables Arduino projects to detect heartbeats and pulse rates, making it ideal for applications such as health monitoring, fitness tracking, and biofeedback systems. Let’s delve into the details of the KY-039 Heartbeat Sensor and learn how to integrate it with Arduino for heartbeat detection.

Hardware Required

You will require the following Hardware Components for the, How to Interfacing KY-039 Heartbeat Sensor Module with Arduino.

Components#Buy From Amazon
Arduino UNO1Buy Link
KY-039 Heartbeat Sensor Module1Buy Link
37 in 1 Sensor kit (Optional)1Buy Link
9v DC Adapter (Optional)1Buy Link
Jumper Wires3Buy Link
Breadboard1Buy Link

What is the KY-039 Heartbeat Sensor?

The KY-039 Heartbeat Sensor is a sensor module designed to detect heartbeats and pulse rates using photoplethysmography (PPG) principles. It utilizes an infrared (IR) LED and a photodetector to measure changes in blood volume and produce an analog output signal proportional to the detected heartbeat. The KY-039 module provides a simple and reliable solution for heartbeat detection in Arduino projects.



  1. Non-invasive Detection:
    • Performs non-invasive detection of heartbeats without requiring direct contact with the skin.
  2. High Sensitivity:
    • Detects subtle changes in blood volume to accurately measure heartbeats and pulse rates.
  3. Analog Output:
    • Provides an analog output signal that can be read by Arduino’s analog input pins for heartbeat measurement.
  4. Adjustable Sensitivity:
    • Allows for adjusting the sensitivity of the sensor to optimize performance in different environments and applications.
  5. Low Power Consumption:
    • Designed for low power operation, making it suitable for battery-powered applications with minimal energy consumption.



Pin Configuration

NoPin NameDescription
1SSignal output
2middlePower or VCC


  1. Operating Voltage:
    • Typically operates at 5V, compatible with Arduino’s voltage levels.
  2. Detection Method:
    • Utilizes photoplethysmography (PPG) principles to detect changes in blood volume caused by heartbeat.
  3. Output Type:
    • Analog output signal proportional to the detected heartbeat.
  4. Detection Range:
    • Detects heartbeats within a specified range, typically up to several centimeters from the sensor.
  5. Dimensions:
    • Compact form factor suitable for integration into wearable devices and health monitoring systems.

Circuit Diagram

The following circuit shows you the connection of the, How to Interfacing KY-039 Heartbeat Sensor Module with Arduino. Please make the connection carefully


Circuit Connections

ArduinoHeartbeat Sensor
A0 PinS

Installing Arduino IDE Software

First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow


//For more Projects:

void setup ()
Serial.begin(9600); // initialize serial

void loop ()
// display analog values to serial


  1. Health Monitoring: Use the KY-039 sensor for real-time monitoring of heartbeats and pulse rates in healthcare and medical applications.
  2. Fitness Tracking: Integrate the KY-039 sensor into wearable fitness devices for tracking heart rate during exercise and physical activities.
  3. Biofeedback Systems: Incorporate the KY-039 sensor into biofeedback systems for providing users with real-time feedback on their heart rate and stress levels.
  4. Smart Wearables: Develop smart wearable devices such as smartwatches and fitness bands with built-in heart rate monitoring capabilities using the KY-039 sensor.
  5. Research and Development: Utilize the KY-039 sensor for research purposes in fields such as physiology, sports science, and human-computer interaction.


The KY-039 Heartbeat Sensor Module offers a versatile and reliable solution for heartbeat detection with Arduino. With its non-invasive detection, high sensitivity, and analog output, the KY-039 module provides endless possibilities for incorporating heartbeat sensing into Arduino projects. Let’s explore the potential of biometric sensing and unlock new opportunities for health monitoring and fitness tracking!

Leave a Comment