Hi all. New to the Arduino forms, and getting my feet wet with Arduino programming and boards. I have been doing a fair amount of searching and looking around at various projects, code samples ect. Some great stuff out there. I am running into a problem. I am connecting a simple DHT11 temp / humid sensor to an LCD. 16x2. I have tested the temp sensor using G,V,S S to Pin 2. and checked the serial monitor and was getting the correct readings. Then later, connected up the LCD and did a few tests on it. (Hello world, serial read, ect) both working just fine. Now I am trying to bridge the two together and that is where things go south. Many errors on just about every bit of code I have tried. Doing some reading I am discovering that much of the code that is out there for this kind of project is slightly outdated? Thus why I am getting the errors. (I am guessing here.) I also noticed, that on many of the wiring diagrams, the resistor for the DHT11 is always missing as well as the 10k pot for contrast for the LCD screen. This makes me scratch my head a bit because it seems to contradict the working wiring and code for both the LCD and the Temp sensor.
Here is what I have. The DHT11 is connected to ground, and 5V, with the Signal going to digital pin 2. A 4.7k resistor between 5V and Signal on the sensor.
LCD connected per usual, with a 10k pot for contrast.
Now for the code:
I wont bother posting the code I have tried, I think it will just muddle this post. Is there updated code with a wiring diagram for reference anywhere out there? I have a link to (http://playground.arduino.cc/Main/DHT11Lib) I am guessing the best thing to do is load up the .h and the .cc to the library under the DHT11 folder, then run that sketch, but before I venture in doing that, I wanted to run it past here for a bit of confirmation on the steps, and the wiring. Here is just a quick snapshot of the project on the bench. Help is much appreciated.