I am using ESP32 lolin. For code compilation and flashing using ESP-IDF.
https://www.dfrobot.com/product-2771.html
source $HOME/esp/esp-idf/export.sh
As, I am using Ubuntu for the development, to connect with the serial port of the ESP32 following command is necessary:
sudo usermod -a -G dialout $USER Then log out and back in.
idf.py fullclean
idf.py set-target esp32
idf.py build
idf.py flash
Goto: idf.py menuconfig
then -> Component config -> Bluetooth -> Enable
mkdir -p components && cd components
git submodule add https://github.com/aedalzotto/esp32-max30100.git