LCD reading values wrong

I want this LCD to read the values on DHT11 but it reads 1/26 of the values. I cannot solve. Here is my code:

#include <LiquidCrystal.h>
#include "DHT.h"

#define DHTPIN 8           

LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

#define DHTTYPE DHT11      


char temperature[] = "Temp = 00.0 C  ";
char humidity[]    = "RH   = 00.0 %  ";

void setup() {

  lcd.begin(16, 2);

void loop() {


  byte RH = dht.readHumidity();
  byte Temp = dht.readTemperature(); 

  if (isnan(RH) || isnan(Temp)) {

    lcd.setCursor(5, 0);

  temperature[7]     = Temp / 10 + 48;
  temperature[8]     = Temp % 10 + 48;
  temperature[11]    = 223;

  humidity[7]        = RH / 10 + 48;
  humidity[8]        = RH % 10 + 48;

  lcd.setCursor(0, 0);
  lcd.setCursor(0, 1);

OK, here's your image.
Ekran Alıntısı.PNG
Now, how about you do this properly. :grinning:

You need to go and read the forum instructions so that you can go back and modify your original post (not re-post it) - using the "More -> Modify" option below the right hand corner of your post - to mark up your code as such using the "</>" icon in the posting window. Just highlight each section of code (or output if you need to post that) from the IDE and click the icon.

In fact, the IDE itself has a "copy for forum" link to put these markings on a highlighted block for you so you then just paste it here in a posting window. But even before doing that, don't forget to use the "Auto-Format" (Ctrl-T) option first to make it easy to read. If you do not post it as "code" it can often be quite garbled and is always more difficult to read due to the font.

It is inappropriate to attach it as a ".ino" file unless it is clearly too long to include in the post proper. People can usually see the mistakes directly and do not want to have to actually load it in their own IDE. And even that would also assume they are using a PC and have the IDE running on that PC.

Also tidy up your blank space. Do use blank lines, but only single blanks between complete functional blocks.

Thanks for the warning, I corrected the code but still cannot post image directly

OK, the trick is we are not sure what library you are using.

Presuming it it the Adafruit one, it reads the values into float variables which you can print directly, rather than int.

Yes, I use the Adafruit library. What changes should I do?

You appear to have your wires wrong end to end. Arduino pin 2 is connected to the LCD pin D7. etc.