Problem Arduino & ardafruit pn532

I am very low educated in the Arduino environment. I have a program running on a Arduino MEGA 2560 and connected to an Ardafruit PN532. The software is written by somebody else and I use it. However it works, but if I want to verify it the system tells me

quote

/Users/renesusan/Documents/Arduino/test01/test01.ino:4:10: fatal error: Adafruit_PN532.h: No such file or directory
#include <Adafruit_PN532.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: Adafruit_PN532.h: No such file or directory

end of quote

can anybody tell me what I do wrong, as the software works fine and in the serial monitor I can find my readings from the ardafruit.

regards

Rene

What is line 4 in your code?

install the Adafruit_PN532 library...

//Largely based on Lewis Callaway's Instructable code:

// http://www.instructables.com/id/NFC-Computer-Unlocker

this is line 4 #include <Adafruit_PN532.h>

#include <Wire.h>

#include <SPI.h>

#define PN532_SCK (2)

#define PN532_MOSI (3)

#define PN532_SS (4)

#define PN532_MISO (5)

thanks for answer, but I am very little educated in this software, how do I do that and where can I find it?

Did you check this link?

http://learn.adafruit.com/adafruit-pn532-rfid-nfc/arduino-library

thanks, I will check this. looks as if I can find my answer there

Installing libraries is documented, you can find how to do this

https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries/

thanks for your assistance, it looks reasonable easy
kind rads
Rene