dht22 non legge

Salve a tutto il forum

vi lascio il code che sto cercando di usare per far funzionare due DHT22 , grosso problema non legge nulla , anche se arduino mi compila tutto in maniera regolare …

#include <SPI.h>                    // Used by Blynk
#include <Ethernet.h>               // Used by Blynk
#include <BlynkSimpleEthernet.h>    // Used by Blynk
#include "DHT.h"                    // DHT Sensor
#include <SimpleTimer.h>            // used to run functions at preset intervals

#define BLYNK_PRINT Serial
char auth[] = "PasteAuthBetweenQuotes";

DHT dhtA(A2, DHT22);     // DHT instance named dhtA, Analog0 and sensor type
DHT dhtB(A3, DHT22);     // DHT instance named dhtB, Analog2 and sensor type

SimpleTimer timer;       // SimpleTimer instance named timer

void setup()
{
  Serial.begin(9600);
  //Serial2.begin() // For other baud rates
  //Serial3.begin() // For other baud rates
  Blynk.begin(auth);
  dhtA.begin();
  dhtB.begin();
    pinMode(A2, INPUT_PULLUP);    // DHT22 use internal 20k pullup resistors
    pinMode(A3, INPUT_PULLUP);

    while (Blynk.connect() == false) {}

    timer.setInterval(4700L, climateRoutine); // 4.7 second intervals between climate routines
    delay(2000);
  }

  void loop()
  {
    Blynk.run();
    timer.run();
  }

  void climateRoutine()
  {
    byte h1 = dhtA.readHumidity();          // f1 and h1 are fahrenheit and humidity readings
    byte f1 = dhtA.readTemperature(true);   // from DHT/A
    byte h2 = dhtB.readHumidity();          // f2 and h2 are fahrenheit and humidity readings
    byte f2 = dhtB.readTemperature(true);   // from DHT/B

    Blynk.virtualWrite(V1, f1);      //  Set Virtual Pin 0 frequency to PUSH in Blynk app
    Blynk.virtualWrite(V2, h1);      //  Set Virtual Pin 1 frequency to PUSH in Blynk app
    Blynk.virtualWrite(V3, f2);      //  Set Virtual Pin 2 frequency to PUSH in Blynk app
    Blynk.virtualWrite(V4, h2);      //  Set Virtual Pin 3 frequency to PUSH in Blynk app
  }

usero il tutto con arduino mega e modulo lan

grazie in anticipo

problema risolto ...difetto di arduino mega le porte 1 2 3 4 erano out

grazie