.INO can't find the library

I've used Arduino for years, but am always confused on where to put the libraries and files. Seems like it needs to be installed in several locations?

I just bought a touch screen and went to run the .ino file and when checking to see if it will compile, it errors for not finding the .h file.

I've copied that file as I have all my libraries to every location I can think of. C:Users/me/documents/arduino, in the folder that has the .ino file...

And after spending hours looking for Arduino Libraries locations, surprisingly finding nothing. Yes, it usually takes me days of copying files into random locations until magically one day it just works, and I have a gig or two of duplicate files everywhere.

Anyone know the secret?

There is only one location where you should install libraries to: {sketchbook folder}/libraries. You can find the location of the sketchbook folder in the Arduino IDE at File > Preferences > Sketchbook location.

There are a couple other locations where libraries are stored but you should never install your own libraries to those locations otherwise they will be lost when you do an update.

The best thing is to use the Arduino IDE's Sketch > Include Library > Manage Libraries or Sketch > Include Library > Add .ZIP Library because these will ensure the library is always correctly installed to the right place.

It's not such a secret: