How to use pulse heart beat sensor and DHT22 in arduino lilypad

Hello everyone, I’m newbie in Arduino, fisrt I’m sorry for my english. I want to combine pulse heart beat sensor with temperature and humidity DHT22.
I just try to use this program but when I try compile it’s error.
This is my code :

//Sensor Suhu dan Kelembapan
#include <dht.h>

//Sensor Pulse atau Detak Jantung
#include <PulseSensorPlayground.h>

//Pin untuk sensor suhu dan kelembapan
#define DATA_PIN 2

#define USE_ARDUINO_INTERRUPTS true

//Objek
dht DHT; //Objek DHT untuk sensor
PulseSensorPlayground pulseSensor; //Objek untuk sensor detak jantung

//Konstraktor
const int OUTPUT_TYPE = SERIAL_PLOTTER; //Untuk print dalam bentuk serial plotter atau grafik

const int PIN_INPUT = A0; //Pin A0 analog untuk sensor detak jantung
//const int PIN_BLINK = 13; // Pin 13 untuk koneksi ke LED
//const int PIN_FADE = 5; //Pin 5 untuk PWM pin yang terkoneksi ke LED.
const int THRESHOLD = 550; //

void setup() {
// put your setup code here, to run once:

Serial.begin(9600); //Untuk data transmisi sensor suhu

Serial.begin(115200);//Untuk data tansmisi sensor detak jantung

//Konfigurasi Pulse Sensor
pulseSensor.analogInput(PIN_INPUT);
//pulseSensor.blinkOnPulse(PIN_BLINK);
//pulseSensor.fadeOnPulse(PIN_FADE);
pulseSensor.setSerial(Serial);
pulseSensor.setOutputType(OUTPUT_TYPE);
pulseSensor.setThreshold(THRESHOLD);

//Membaca sinyal sensor pulse detak jantung
/*
if (!pulseSensor.begin()){

for(;:wink: {
//Flash dari blink LED
digitalWrite(PIN_BLINK, LOW);
delay(50);
digitalWrite(PIN_BLINK, HIGH);
delay(50);
}
}
*/

}

void loop() {
// put your main code here, to run repeatedly:

//Program Sensor Suhu dan Kelembapan
int readData = DHT.read22(DATA_PIN); //membaca data sensor
float t = DHT.temperature; //ambil data dari suhu
float h = DHT.humidity; //ambil data dari kelembapan

//Mencetak output ke Serial Monitor
Serial.print(“Suhu = “); //mencetak suhu
Serial.print(t); //mencetak nilai dari suhu
Serial.print(” *C “); //dalam satuan celcius
Serial.print(” Kelembapan = “); //mencetak kelembapan
Serial.print(h); //mencetak nilai kelembapan dari sensor
Serial.println(”%”); //dalam persenan

//Program Sensor Detak Jantung
delay(20); //waktu untuk delay membaca sinyal
pulseSensor.outputSample(); //mencetak sample terakhir ke Serial

//pengecekan terakhir, per-detak informasi ke serial
if (pulseSensor.sawStartOfBeat()) {
pulseSensor.outputBeat();
}

}

I don’t use LED to blink so code for blink I disable.

Thank you.

Please use code tags to post code!

I just try to use this program but when I try compile it's error.

On my IDE it compiles without an error. As you didn't tell us what error you got we cannot help you.