Make a system for monitoring the humidity and temperature in the air.

Hello!Nice to meet you!
First of all, I'd like to apologize if I'm wrong in drafting. I have little English knowledge. :slight_smile:
I had the idea of making a system for monitoring the humidity and temperature in the ai,for helping a friend.
The following components are used in the schematic: the ATMega 328P microcontroller, which is used for the control of the entire module, the dual DHT22 sensor, which is used for measuring air temperature and humidity, 16X2 LCD display for displaying the value results, 10KOhmi to change the brightness of the display, a reset button, a blue LED that lights up when the module is on, another blue LED that lights up when the reset button is pressed .
The following four LEDs, two yellow LEDs for the minimum threshold value for temperature and humidity, and the other two red LEDs for the maximum threshold value for temperature and humidity.
If the value of the temperature signal purchased by the dual DHT22 sensor is below 28 , the yellow LED lights up, if the value is above 28 , the red LED lights up, and when the humidity signal is below 19% the yellow LED lights up, if the humidity signal is above 19%, the red LED lights up.
I don’t understand why the circuit diagram is not working.
Thank you!
The source code is:

// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
#include <LiquidCrystal.h>
#include "DHT.h"

#define DHTPIN 2     // what pin we're connected to

// Uncomment whatever type you're using!
//#define DHTTYPE DHT11   // DHT 11
#define DHTTYPE DHT22   // DHT 22  (AM2302)
//#define DHTTYPE DHT21   // DHT 21 (AM2301)

// Connect pin 1 (on the left) of the sensor to +5V
// NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1
// to 3.3V instead of 5V!
// Connect pin 2 of the sensor to whatever your DHTPIN is
// Connect pin 4 (on the right) of the sensor to GROUND
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor

// Initialize DHT sensor.
// Note that older versions of this library took an optional third parameter to
// tweak the timings for faster processors.  This parameter is no longer needed
// as the current DHT reading algorithm adjusts itself to work on faster procs.
LiquidCrystal lcd(12, 11, 3, 4, 5, 6);
DHT dht(DHTPIN, DHTTYPE);
int ledtempm = 7;
int ledtempM = 8;
int ledumidm = 10;
int ledumidM = 9;
void setup() {
 pinMode(ledtempm, OUTPUT);
 pinMode(ledtempM, OUTPUT);
 pinMode(ledumidm, OUTPUT);
 pinMode(ledumidM, OUTPUT);
 //Serial.begin(9600);
 //Serial.println("Proiect Baciu Dragos Iulian - Senzor DHT22 Umiditate si Temperatura!");

lcd.begin(16, 2);


 dht.begin();
 
 lcd.setCursor(0, 0);
 lcd.print("Graduate:");
 lcd.setCursor(0, 1);
 lcd.print("Brrud");
 delay (4000);
 lcd.setCursor(0, 0);
 lcd.print("             ");
 lcd.setCursor(0, 1);
 lcd.print("              ");
 delay (500);
 
}

void loop() {
 // Wait a few seconds between measurements.
 delay(1000);

 // Reading temperature or humidity takes about 250 milliseconds!
 // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
 float h = dht.readHumidity();
 // Read temperature as Celsius (the default)
 float t = dht.readTemperature();
 // Read temperature as Fahrenheit (isFahrenheit = true)
 float f = dht.readTemperature(true);

 // Check if any reads failed and exit early (to try again).
 if (isnan(h) || isnan(t) || isnan(f)) {
   Serial.println("Failed to read from DHT sensor!");
   return;
 }

 // Compute heat index in Fahrenheit (the default)
 float hif = dht.computeHeatIndex(f, h);
 // Compute heat index in Celsius (isFahreheit = false)
 float hic = dht.computeHeatIndex(t, h, false);

 //Serial.print("Humidity: ");
 //Serial.print(h);
 lcd.setCursor(0, 0);
 lcd.print("RH:");
 // print the number of seconds since reset:
 lcd.setCursor(3, 0);
 lcd.print(h/100);
 lcd.setCursor(8, 0);
 lcd.print("%");
 
 
 if (h < 1900){
   digitalWrite(ledumidm, HIGH);
   digitalWrite(ledumidM, LOW);
 }
 else {
   digitalWrite(ledumidM, HIGH);
   digitalWrite(ledumidm, LOW);
 }
 
 //Serial.print(" %\t");
// Serial.print("Temperature: ");
 //Serial.print(t/25);
// Serial.print(" *C ");
 lcd.setCursor(0, 1);
 lcd.print("Temp:");
 // print the number of seconds since reset:
 lcd.setCursor(5, 1);
 int xt = t/25;
 lcd.print(xt);
 lcd.setCursor(7, 1);
 lcd.print((char)223);
 lcd.setCursor(8, 1);
 lcd.print("C");
 
 if (xt < 29){
   digitalWrite(ledtempm, HIGH);
   digitalWrite(ledtempM, LOW);
 }
 else {
   digitalWrite(ledtempM, HIGH);
   digitalWrite(ledtempm, LOW);
 }
 
// Serial.print(f);
 //Serial.print(" *F\t");
 //Serial.print("Heat index: ");
 //Serial.print(hic);
 //Serial.print(" *C ");
// Serial.print(hif);
 Serial.println(" ");
}

#define DHTPIN 2     // what pin we're connected to

In the schematics the DHT sensor is connected to pin 8.

Vin is connected to 5V, I hope that's just an error in the schematics.

It would help to know which parts are working and which don't work.

I apologize.
At the time I insert .hex files, in uC Atmega 328P, initialization begins.
Although, there is no error. When I press the Run command, everything is functional, the display is ON, but the name and values of humidity and temperature don’t appear on the display.
Please, your help would be a great help to me.
Thank you very much!

Have you fixed the wrong pin?