I already made two Instructables on how to use DTH11/DTH21/DTH22 and AM2301 Temperature and Humidity sensors with Arduino, and you can find them here and here . I also made Instructable on how to use I2C LCD Character Display, and one on how to use a directly connected LCD Character Display .
Here I will show you how you can use I2C LCD Character Display to display Temperature and Humidity measured by DHT11 sensor. The same steps can be followed to implement the project with directly connected LCD display.
In the previous Instructables, we just sent some text to be directly displayed in the LCD Display in the order the characters arrived. Visuino allows the information to also be displayed in predefined fields at specific positions. In addition, Visuino allows visually to create and use custom characters in the display. In this Instructable, we will use all of these features to make a cool Temperature and Humidity LCD display.
Connect the Male ends of the 3 Power wires(Red wires) - from the Display, the DHT11 Module, and the Arduino together as example with the help of a Breadboard (Picture 1) - In my case I used a small Breadboard
To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/ .
Please be aware that there are some critical bugs in Arduino IDE 1.6.6.
Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work!
The Visuino: https://www.visuino.com also needs to be installed.
We will add a Text field with the description of the value, and Analog field to display the value for the Temperature and Humidity values.
First we will add Description and value fields for the Temperature:
Next we will repeat the same steps for the Humidity:
The LCD display does not have Degree symbol, so we will define our own. For this, first we will define a symbol, and then display it.
We can use the project as it is, however it will refresh the LCD very fast all the time. It is better if the LCD is updated as example once a second. For this we will add a clock component to clock the reading from the sensor and the updating of the LCD.
Congratulations! You have completed the project.
Picture 1 shows the connected and powered up project. As you can see on the picture the Display will show the temperature and the Humidity.
On Picture 2 you can see the complete Visuino diagram.
Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.com