I get a error when installing library

Hello, I am new to Arduino, and I am trying to add a library, but! it says "no file or directory"
but here's the problem, I watched videos saying I need to install it, but I already had! and in the library manager, it says library installed, but I still get the error!!! here's the error

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"
Test_sketch:1:10: fatal error: DHTlib.h: No such file or directory

compilation terminated.

exit status 1

DHTlib.h: No such file or directory

it may be because in the code it says #include <dht.h>
but that's what happens if I do: Sketch > include library > DHTlib

thx in advance

Welcome to the forum

Please post the full sketch that you are trying to compile. Please confirm the name of the library that you say is installed

the Sketch has not much in it, I am just trying to fix the library thing.

#include <dht.h>

void setup() {
}

void loop() {
}

I did confirm that the library is installed by going to the manage libraries and searching for that library and it says that its installed

That is a good strategy

I am still not clear which library you say that you have installed. Is it DHTlib.h or something else ?

In the IDE go to File, Examples, find the DHT library and load and run one of the examples for your sensor. Does that compile and work?

my library has no examples

yes, I downloaded it using ZIP file, the name is DHTlib, its from one of the tutorials on YouTube

There is something wrong with either the library or the library installation. I would suggest that you install a DHT library using the IDE library manager. That will insure that the library is the latest version and correctly installed. There will then be example code to verify your installation and test your sensor. Delete the other version from your libraries folder first.

There are examples for the DHTlib library installed with it

Which board have you got selected as a target for the compilation ?

Arduino Uno is my board, no examples come with the Zip file

Did you go to the IDE library manager, find a DHT library and install it? That was the point of deleting the other DHT library. So that you could install a known good library and install it in the right way.

I deleted it now, all is ok, sorry if you are already replying to it

i am downloading the new library now.
oh now it's saying "invalid library found, there is already a library at -address-"

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

ok, hold up, i deleted the Zip library, downloaded the one from the library manager, it say an error, it still downloaded, i opened example, example have me a no file or directory error

hey! I ran out of comments, i cant reply any more ;-; sorry

Please list the files in the DHTlib library folder

How exactly did you install the library ?

first of all, sorry, I could not send any replies because I joined the same day I wrote the question, second, I fixed the problem, it was not close to what you have been asking me to check or do, the problem was that the libraries were going to one file, but the IDE was searching for them at another location, thank you for your time and help

The IDE will look for a user installed library in a folder of the same name in the libraries folder of your sketchbook folder

Where had you installed the library ?

Take a look at https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries