I just received in the mail a couple of the DHT11 Humidity and Temp sensors. Before I have plugged them, I went to the arduino reference page and have uploaded & built the directory, and added the two supplied library driver files.
I reset Arduino IDE and the library is visible. When I go to compile the example code from this page however, I get a number of error issues with the compile process. The first of which is at this point in the code supplied in the library.
dht11 DHT11; ~expected constructor, destructor, or type conversion before numeric constant
I am running Arduino 1.05r2 with a Mega 256. I am under the impression this is supposed to compile and run on this combo.
As i am using example only code, with no changes to it, I am confused as to why its not at least compiling. Is anyone one else having issues with this example? I am ready to add these two new readings to the soil moisture sensor I have working at www.bammo.info for my farming monitoring project.
Any suggestions or directions as to where I can find a working example that will compile would be greatly appreciated.