Dos dispositivos conectados a blynk no funcionan bien

Buenas!, tengo una esp8266 conectada con un sensor ultrasónico y un sensor de temperatura y humedad, al mismo tiempo están enlazadas con blynk. El problema lo tengo que cuando el sensor ultrasónico no registra una medida mayor a la dicha (lo normal), el sensor de temperatura y humedad no registra nada, es como si se parara… En cambio, cuando el ultrasónico mide más de lo debido y envía unas notificaciones, el sensor de humedad, empieza a funcionar. Si alguien me puede ayudar estaré muy agradecido, por cierto el sensor de temperatura y humedad es un DHT11 y el ultrasónico es el HC-SR04. Aquí mi código, gracias:

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
#define DHTPIN 2 // What digital pin we're connected to

// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);
BlynkTimer timer;

void sendSensor()
{
float h = dht.readHumidity();
float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V7, h);
Blynk.virtualWrite(V6, t);
// /pin.##/
}

const int triggerPin = 5;
const int echo = 4;

long duration;
int distance;

char auth[] = "";
char ssid[] = "
";
char pass[] = "**********";

WidgetLED led1(V1);

// V1 LED Widget is blinking
void blinkLedWidget()
{
if (led1.getValue()) {
led1.off();
Serial.println("LED on V1: off");
} else {
led1.on();
Serial.println("LED on V1: on");

}
}

void setup(){
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(triggerPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echo, INPUT); // Sets the echoPin as an Input
{
// Debug console
Serial.begin(9600);

Blynk.begin(auth, ssid, pass);
// You can also specify server:
// Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
// Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

timer.setInterval(1000L, blinkLedWidget);
}
{
// Debug console
Serial.begin(9600);

Blynk.begin(auth, ssid, pass);
// You can also specify server:
// Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
// Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

dht.begin();
// Setup a function to be called every second
timer.setInterval(1000L, sendSensor);

}
}
void loop(){
Blynk.run();
digitalWrite(triggerPin, LOW);
delayMicroseconds(2);
digitalWrite(triggerPin, HIGH);
delayMicroseconds(10);
digitalWrite(triggerPin, LOW);
duration = pulseIn(echo, HIGH);
distance= duration*0.034/2;
Blynk.virtualWrite(V5, distance);
if (distance >= 10){
Blynk.notify("ESP8266 Alert -> distance >= 30");
Blynk.email("", "", "My Blynk project is online.");
{
Blynk.run();
timer.run();
}

}

Serial.print("Distance: ");
Serial.println(distance);

}

Moderador:
Doble posteo, hilo cerrado.
La próxima similar recibirás una sanción.
Lee las normas del foro y justamente en el otro hilo edita tu código usando etiquetas.