Arduino, an open-source electronics platform widely used for building interactive electronic projects, comes with a rich set of libraries that extend its functionality. These libraries, written in C or C++, offer convenient functions for working with various hardware components like sensors, motors, and displays. But where does Arduino keep these libraries?

By default, Arduino libraries are stored in the Arduino IDE's library folder. The exact location of this folder depends on your operating system:

Library Folder Location
The Arduino IDE's library folder is usually located in the Arduino IDE installation directory. Here's where to find it on different operating systems:

Windows
The library folder is typically found in the Arduino folder under the Documents directory:

C:\Users\Username\Documents\Arduino\libraries
MacOS
On a Mac, you can find the library folder in the Arduino folder under your Home directory:

~/Library/Arduino/libraries
Using Arduino Libraries
Navigating to the library folder can help you understand what libraries are available. But to actually use a library in your Arduino project, you need to understand the includes and setup processes:

Including Libraries
To use a library in your sketch (Arduino program), you must include it at the top of your sketch using the #include preprocessor directive. For example, to include the popular Serial library, you would write:








![How To Create a Custom Arduino Library for ESP32 [2025]](https://i.pinimg.com/originals/65/17/2b/65172b008b361e7b6baa92771b09e2d8.jpg)









#include <Serial.h>
Setting up Libraries
Some libraries require additional setup to work properly. This could involve initializing variables, declaring objects, or calling functions. Always check the library's documentation for specific setup instructions.
It's also possible to install additional libraries through the Arduino IDE's Library Manager. This can save you the time and trouble of manually moving library folders.
Managing Libraries with the Library Manager
The Library Manager is a built-in tool in the Arduino IDE that simplifies library installation and updating. Here's how to use it:
Browsing Libraries
To browse available libraries, go to Sketch > Include Library > Manage Libraries...
Installing and Updating Libraries
Once you've found a library you want to use, click the Install button next to it. To update a library, first, select it, then click the Update button.
In understanding where Arduino keeps its libraries and how to use them, you're well-equipped to expand the capabilities of your Arduino projects. Happy tinkering!