How to Add a Library in Arduino

Featured Image Arduino Ide Libraries

If you’ve been using Arduino IDE for a while, you will eventually have a need to extend its capabilities. After all, there is a limit to the number of built sketches.

However, thanks to a vibrant community, you can access preexisting templates and modify them according to your needs.

The following steps describe the procedure to add Arduino libraries to an IDE.

What Is an Arduino Library?

Ardunio libraries are frequently-used, readily-available programs that help you get around the IDE’s limited number of built-in sketches. These add-on codes may already be installed in the IDE or are downloadable as a zip folder on or another site.

To locate an add-on library, go to “Sketch -> Include Library -> Contributed Libraries.” The “Recommended Libraries” have to be installed first.

Arduino Include Libraries
Location of Arduino Libraries

The libraries are physically stored in the program files in .ino format, which is an Arduino sketch file.

Libraries In Computer
Physical location of an Arduino file

Installing Arduino Library Using Arduino Library Manager

To add Arduino libraries from the IDE’s own library manager, go to “Sketch -> Include Library -> Manage Libraries.”

Manage Libraries Arduino
Manage libraries in Arduino

You can see a drop-down range of libraries in the Library Manager. To install one of them, install it for the latest version available.

Libraries In Library Manager Arduino
Various libraries seen in Arduino IDE

The installation should not take more than a few seconds. Wait for the Library Manager to update its list of libraries.

Installing A Library Arduino Ide
Updating of Arduino libraries

You can verify the presence of the added library by going back to “Sketch -> Include Library -> Contributed Libraries.”

Verify Library Update Arduino
Verify added libaries in Arduino IDE

When you click on the newly added library, a tiny bit of code will display on the interface. This is the best part about these libraries. A lot of extra code can be summarized in just one simple command, as shown below.

Include Libary In Arduino Code
How Arduino libraries summarize complex commands using #Include

Installing Arduino Library from Other Websites

Arduino’s official website maintains a reference list of libraries that are available for download and installation. These are the ones that show up in the above-described procedure.

Arduino Reference List For Libraries
Arduino Reference List of Libraries

If you want to set up a third-party library in Arduino IDE, you have to search for it online. GitHub is a good place to find them. It has over 80 examples.

You will be given an option to download the zip file. Save it on your computer. Do not unzip it.

Download Zip File Github For Arduino Ide
Download Zip file for Arduino library from GitHub

In the next step, you can add the zip file from “Sketch -> Include Library -> Add .ZIP Library.”

Add Zip File Arduino Ide
Add zip library in Arduino IDE

You don’t have to unzip the folder for download. If there are no programming errors, it will automatically sync with Arduino IDE.

Importing Zip File Arduino Ide
Importing zip file from download location to Arduino IDE

After you click “Open,” the IDE will show a success status as well as addition of new library code.

Success Status New Library Added Arduino Ide

Of course, you can always verify the presence of the newly added library from “Sketch -> Include Library -> Contributed Libraries.”

Verify Arduino Library From External Zip File
Verifying the presence of Arduino library imported from a zip file


Arduino libraries extend storage and functioning capabilities. This gives you far more room for maneuvering your projects. Whether you’re working with flight controllers, drones or robots, you can search its corresponding library file.

Please let us know in the comments your views about the libraries.

Sayak Boral Sayak Boral

IoT-addicted since early 2016. Love to explore the challenges, opportunities and trend insights into what is becoming the third wave of Internet.

More Posts