MAX30102 sensor not sending data

What I am sure of is that this is not a problem about getting the IDE to work. Installation and Troubleshooting is for Problems with the Arduino IDE itself NOT your project. It says so in the description of the section. Therefore I have moved your post here.

You might want to look at this How to get the best from this from this Forum before you proceed any further.

But well done for posting a schematic and code.