Where is the DHT sensor documdntation?

I've been using DHT 11 and DHT22 sensors on UNOs for a year or two, no problem. Now I need to port my sketch to a Uno R4 WiFi, as well as use the V.2.1.1 IDE on a new Windows PC. I got the Adafruit DHT library installed, but one function call elicits a complier error:
"error: 'class DHT' has no member named 'read11'; did you mean 'read'?
dht.read11(DHT_PIN);"

Clearly, something has changed since my original code. I'd correct the problem if only I knew the correct syntax. But I can't find any documentation on the syntax and arguments for the read() function.
i've searched the Web for "dht documentation" and other terms, but haven't found anything helpful.

Is there any DHT library documentation? Where should I be looking? Thanks.

--- Mike

if this documentation exists, then most likely you should look for links to it in the github repository of the library.
But many libraries do not have documentation as such, in this case you can look at the arguments and methods in the source code

Adding to above, you can look at the examples to figure out how to read the sensor.

There are various libraries for the DHT sensors. Did you use the same library in the past? If so, it was possibly an older version.

It definitely was an older version, as evidenced by the new error messages.

I did look at the example source code; that's how I figured how to call the new read() function. I was hoping to read some docs to understand the parameters, and to see if there are other functions not shown in the examples.
I found no documentation on github, only source code, which explains a lot if I wade through it. I was hoping for documentation showing syntax, data types, an explanations of the functions and arguments.

Oh well, the source code is fairly well commented, so that's better than nothing.

--- Mike

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.