Problem installing DHT library (Lesson 12 - mega 2560)

Hello, I am trying out Lesson 12 DHT11 Temperature and Humidity Sensor of the tutorial for mega 2560. Unfortunately, when I try to install the DHT library by including the zip file in the CD, I got the following message -

Error: 13 INTERNAL: Library install failed: archive is not valid: multiple files found in zip file top level

I installed DHT Sensors Non-Blocking from the library manger but I still got the compilation error -

#include <dht_nonblocking.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: dht_nonblocking.h: No such file or directory

My IDE version is 2.3.6.

Any suggestion please ?

Best,
Bryan

Welcome to the forum

Did you write that line of code ?
The example that comes with the library has this line

#include "DHT_Async.h"

and it compiles OK

No, I didn't change that line of code. It is in the example code. In any case, why adding the DHT zip file fails ? Thank you.

There are many lesson books. Which are you using?

There are many zip files. Which one are you using?

I installed the DHT Non-Blocking library by Toan Nguyen using the IDE Library Manager and the example has in it the line of code that I quoted

Is that the same library that you installed ?

Hello I am following Lesson 12 in ELEGOO UNO R3 Project Most Complete Starter Kit tutorial - Amazon.com. The DHT zip file is in the lesson folder.

Post your code and wiring diagram. The link is a merchandise site.

Where does the lesson suggest that you get the library from ?

The instruction says so "After wiring, please open the program in the code folder- Lesson 12 DHT11 Temperature and Humidity Sensor and click UPLOAD to upload the program. See Lesson 2 for details about program uploading if there are any errors.
Before you can run this, make sure that you have installed the < DHT> library or re-install it, if necessary. Otherwise, your code won't work.
For details about the tutorial on the loading of library file, see Lesson 1."

Post the code copied from the lesson folder, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

It is also helpful to post error messages in code tags as it makes it easier to scroll through them and copy them for examination

Why not just start with Lesson 1? It should give you the foundation for Lesson 2... which should give you the foundation for Lesson 3... repeating.

For reference... the Elegoo Mega2560 lessons for The Most Complete Starter Kit.

Prerequisite installations:

Hello, I have actually completed the first 11lessons without problems. Just lesson 12 is problematic.

What does Lesson 1 (page 25) in your Tutorial say about the error you are receiving?
(the 223 page Tutorial)

Did you read the "Read Me First.txt" document in your software download? If not, pay attention to Point #3 (which also addresses my point above).