Project 18, Intruder Tracker, error code

I am trying to upload the code for Project 18 from the Arduino Library and when I verify I get an error code it says,

#include ""newPing.h"" // Call NewPing libraryNewPing sonar(trigPin, echoPin, MAX_DISTANCE);

At the bottom of the box is the message,

Multiple libraries were found for "Servo.h"
Used: /private/var/folders/jd/d0gpgfy13jjgnmjggpsfhslc0000gp/T/AppTranslocation/236A6952-ED2C-459E-8199-78CF9B91B76E/d/Arduino.app/Contents/Java/libraries/Servo
Project_18_Intruder_Tracker:11:10: error: newPing.h: No such file or directory
#include "newPing.h" // Call NewPing libraryNewPing sonar(trigPin, echoPin, MAX_DISTANCE);
^~~~~~~~~~~
compilation terminated.
exit status 1
newPing.h: No such file or directory

I am running a MacBook OS 10.15.7
Any thoughts or ideas what might be causing this error would be greatly appreciated!

Bill

IDE >> TOOLS >> MANAGE LIBRARIES >> (type in newping and click "install")

You might have downloaded another copy of "servo.h" file in a local folder ("Project_18_Intruder_Tracker").

1 Like

Thanks, I'll investigate that!

Try #include "NewPing.h" (with a capital N).

Thanks for that idea, that didn’t do it. Too bad, thanks for the effort.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.