Hi, I am currently working on a project with arduino IDE and have some problem uploading the standard workshop sketch installed inside the software, does it have something to do with the placement of files that's causing the error? Here's the error message stated after uploading the sketch
Multiple libraries were found for "HttpClient.h"
Used: C:\Users\yun\Documents\Arduino\libraries\HttpClient
Not used: C:\Users\yun\Downloads\arduino 1.8.7\arduino-1.8.7\libraries\Bridge
In file included from C:\Users\yun\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
C:\Users\yun\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
Multiple libraries were found for "HttpClient.h"
Used: C:\Users\yun\Documents\Arduino\libraries\HttpClient
Not used: C:\Users\yun\Downloads\arduino 1.8.7\arduino-1.8.7\libraries\Bridge
Not really a problem but you might want to tidy up your library installations. You should probably only have the library in C:\Users\yun\Documents\Arduino\libraries
C:\Users\yun\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
This one is a problem. Do you have Adafruit_Sensor.h on your system ? Either install it or move it to the correct location
Hi, yes I have tried searching for the library <Adafruit_Sensor> to install, however there were only similar names and it still results in the same code error message.
I see the link on adafruit_sensor however in the IDE software under the list of we could not find the exact one to install into the programme as attached.
That error is caused by using version 6.x.x of the ArduinoJson library with code that was written for the 5.x.x versions of the library, as you would have seen if you read the documentation:
[url=http://https://arduinojson.org/v5/faq/error-jsonbuffer-was-not-declared-in-this-scope/]https://arduinojson.org/v5/faq/error-jsonbuffer-was-not-declared-in-this-scope/[/url]
There are two solutions:
Use the version of the library your code was written for. If you installed ArduinoJson via Library Manager, you can do this easily:
Sketch > Include Library > Manage Libraries
Wait for download to finish.
In the "Filter your search..." box, type "ArduinoJson".
Click on "ArduinoJson by Benoit Blanchon".
From the dropdown version menu, select "Version 5.13.3.
Click "Install".
Wait for the installation to finish.
Click "Close".
The other option is to update the code to work with the ArduinoJson 6.x.x API. You will find a guide to this in the documentation:
The second option is much more complicated than the first. Since you are a beginner, I recommend the first.