:2:10: fatal error: OneWire.h: No such file or directory

Hi @lujain_xx.

This error indicates that you haven't installed the library that contains the MAX30100_PulseOximeter.h file.

Please provide a link to where you found this code. That will likely give us the context we need to provide you with the appropriate instructions for installing the missing library.