In this Video tutorial I've explained you about how to add any external library of Arduino in ESP-IDF, here we are using Arduino as a component so we are interfacing DHT11 sensor with esp32 and we are using VS code editor with ESP-IDF extension.
amazon India link to buy ESP32 Development Board: https://amzn.to/3yquJg1
amazon India link to buy different types of ESP32 Board: https://amzn.to/3yRZ4W2
FB page : / embedotronics
#ESP32
#ESPIDF
#visualstudiocode