How to include libraries into Arduino IDE

Posted on

Arduino Library

When we make a code on the Arduino IDE, we will often find that the program will need a library to facilitate our programming. In this article I will guide you on how to include libraries into the Arduino IDE.

To do that by default there are 2 ways, first install the library via the “Manage Libraries” and “Manual Way”.

Now, let’s see how to do it. We take an example in this article using a library for DHT temperature sensors and a library created by Adafruit Industries.

Using Manage Libraries

For this is the simplest and easy way to do. You just need to follow these steps:

  • Open your Arduino IDE
  • Click the Sketch menu
  • Click the Include library menu
  • Click the Manage Libraries menu
  • then in the search field, type the word “DHT”
  • In the results list, you will see a lot of DHT sensors. Choose one made by Adafruit Industries
  • then click install. If you have you will see as in the following image
How to include libraries into Arduino IDE
  • Now you are ready to use it.

Using Manual Way

To do the installation manually, we must have the library file itself. For example, the DHT sensor has been provided by Adafruit Industries and is shared on Github here.

  • Now we first download the .zip file.
  • Open your Arduino IDE
  • Click sketch menu
  • Click Include library menu
  • Click the add .ZIP library menu
  • Done.

If you have completed one of the steps above, then the library can be used. Hopefully this include libraries into Arduino IDE article is useful.

May be you like:
> How to using DHT11 Sensor Arduino Uno Code & Wiring
> How to use AMG8833 ESP8266 NodeMCU Arduino Basic Code
> How to using ATtiny Serial UART and Computer
> How to control 3 Stepper Motor Serial Arduino At Same Time
> How to Install SimulIDE On Ubuntu Using Terminal (tar.gz)

1 comment

Leave a Reply