Max30100 the led is not lit up and i get an ouput of soft wtd reset

im getting a soft wtd reset in max30100. But when i use different sensor like DSB120 it works fine in my nodemcu. And also even without plugging the max30100 to the nodemcu, i still get a soft wdt reset.

i also put 4.7k pull ups to scl sda and int

GND → GND
SCL → D1
SDA → D2
INT → D0
VIN → 3v3

Description of the issue:

Soft WDT resetm getting a soft wtd reset in max30100. But when i use different sensor like DSB120 it works fine in my nodemcu. And also even without plugging the max30100 to the nodemcu, i still get a soft wdt reset.

i also put 4.7k pull ups to scl sda and int

GND → GND
SCL → D1
SDA → D2
INT → D0
VIN → 3v3

stack>>>

ctx: cont
sp: 3ffffdf0 end: 3fffffc0 offset: 01b0
3fffffa0: feefeffe 00000000 3ffee598 40202bf0
3fffffb0: feefeffe feefeffe 3ffe84ec 40100ea1
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
Initializing pulse oximeter…FAILED

Source code:

#include <Wire.h>
#include “MAX30100_PulseOximeter.h”

#define REPORTING_PERIOD_MS 1000

// PulseOximeter is the higher level interface to the sensor
// it offers:
// * beat detection reporting
// * heart rate calculation
// * SpO2 (oxidation level) calculation
PulseOximeter pox;

uint32_t tsLastReport = 0;

// Callback (registered below) fired when a pulse is detected
void onBeatDetected()
{
Serial.println(“Beat!”);
}

void setup()
{
Serial.begin(115200);

Serial.print(“Initializing pulse oximeter…”);

// Initialize the PulseOximeter instance
// Failures are generally due to an improper I2C wiring, missing power supply
// or wrong target chip
if (!pox.begin()) {
Serial.println(“FAILED”);
for(;;);
} else {
Serial.println(“SUCCESS”);
}

// The default current for the IR LED is 50mA and it could be changed
// by uncommenting the following line. Check MAX30100_Registers.h for all the
// available options.
// pox.setIRLedCurrent(MAX30100_LED_CURR_7_6MA);

// Register a callback for the beat detection
pox.setOnBeatDetectedCallback(onBeatDetected);
}

void loop()
{
// Make sure to call update as fast as possible
pox.update();

// Asynchronously dump heart rate and oxidation levels to the serial
// For both, a value of 0 means “invalid”
if (millis() - tsLastReport > REPORTING_PERIOD_MS) {
Serial.print(“Heart rate:”);
Serial.print(pox.getHeartRate());
Serial.print(“bpm / SpO2:”);
Serial.print(pox.getSpO2());
Serial.println("%");

tsLastReport = millis();
}
}

Hardware: Nodemcu esp8266 and Max30100