To import a library on Arduino IDE follow these steps:
- Download the library.
- Open the Arduino.org IDE (you can download it here).
- Select Sketch>Import library>Add library.
- Select the folder or the Zip file of library and click on Open.
- Wait the conferme message on console.
Now that you have imported the library, you can use it in your sketches.
If instead you want use the imported library examples then scroll the Examples list of File>Examples menu, as shown in the below image:
To include the library in a sketck do so:
for example if you include the GSM library: