Arduino - How To Fix Error .h: No Such File Or Directory
Maybe your like
I ran into this “No Such File or Directory” myself when I downloaded a sketch from the IoT Cloud environment. I opened it up in the Arduino IDE. When I pressed Sketch Upload I got this precise error message “ArduinoIoTCloud.h: No such file or directory“.
If you run into these errors, the chance is big that you forgot to import a Library in your Arduino IDE.

Unfortunately, Arduino doesn’t give hints that can help beginners (Processing, a creative software tool, does a better job in this).
You get this “No such file or directory” error when you don’t install a library. The default functionality in Arduino can be extended by libraries. In this case, a library that includes all the functionality to connect to the Arduino IoT Cloud service.
How do you figure out which library is missing when you get the “no such file or directory” error?
My tip is to search for the plain file. So, in this situation, “ArduinoIoTCloud.h”. Most Arduino code is open-source and published on GitHub. Lucky for us, code shared on Github is well-indexed by engines like Google and DuckDuckGo.

This will lead you to ArduinoIoTCloud/src/ArduinoIoTCloud.h

How do you install an Arduino library?
You can download the code from Github and copy it to your library directory.
An easier way is to add the library in the Library Manager.
Go to Sketch > Include Library > Manage Libraries …Type in the name “ArduinoIoTCloud”, select it in the list and press Install.

Press Install and make sure you install the library, including all of its dependencies (other libraries that this library uses).
I hope I could help you move forward. Have fun playing with Arduino and check some of my other articles in my Arduino category.
Tag » Arduino Joystick.h No Such File Or Directory
-
Fatal Error: ArduinoBLE.h: No Such File Or Directory - Arduino Forum
-
“.h: No Such File Or Directory" - 2 Easy Fixes To Arduino Error - SOLVED
-
2 Easy Fixes To Arduino Error: “.h: No Such File Or Directory" - YouTube
-
[Résolu] Message D'erreur "No Such File Or Directory" - Arduino Forum
-
[Solved] Help With: Fatal Error: Arduino.h: No Such File Or Directory
-
Arduino Joystick Doesnt Work - Programming Questions
-
No Such File Or Directory But I Already Had This File - Arduino Forum
-
The Joystick.h File Or Directory Is Missing (#4) · Issues - GitLab
-
How To Fix .h: No Such File Or Directory Error - Linux Hint
-
Arduino IDE Error On Using Hieronymous Joystick Library
-
How To Solve There Are No Such File Or Directory - Stack Overflow
-
[PDF] Arduino Compile Error Not Been Declared - Stefano Boeri Architetti
-
Arduino Joystick Library - Programming Ponderings
-
Revision 2.0 Of USB Host Library For Arduino. - GitHub