communication between two JSN - SR04T

DaveEvans:
Load up the NewPing library and the simple example sketch.

Hello I tested the sensors and works fine. I tested it like depth measurement here is my code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

#define TRIGGER_PIN 4

// nastavení adresy I2C (0x27 v mém případě),
// a dále počtu znaků a řádků LCD, zde 20x4
LiquidCrystal_I2C lcd(0x3F, 16, 2);
unsigned int counter = 0;

void setup()
{
  Serial.begin(9600);
  Serial.println("Init lcd");
  lcd.begin();
  lcd.backlight(); // zapne podsvětlení
  lcd.print("test");
  delay(10);
  lcd.clear();
}

void loop(){
  digitalWrite(TRIGGER_PIN, LOW);
  delayMicroseconds(4);
  digitalWrite(TRIGGER_PIN, HIGH);
  delayMicroseconds(4);
  digitalWrite(TRIGGER_PIN, LOW);

  Serial.print("Send signal");
  Serial.println();
  lcd.clear();
  lcd.print("ping send ");
  lcd.print(++counter);
  delay(110);
}

Then i tried setup first sensor like trigger

#define TRIGGER_PIN 4

void setup()
{
  Serial.begin(9600);
  Serial.println("Init lcd");
}

void loop(){
  digitalWrite(TRIGGER_PIN, LOW);
  delayMicroseconds(4);
  digitalWrite(TRIGGER_PIN, HIGH);
  delayMicroseconds(4);
  digitalWrite(TRIGGER_PIN, LOW);

  Serial.print("Send signal");
  Serial.println();
  delay(50);
}

And second sensor setup for echo:

#define ECHO_PIN 10

void setup() {
  Serial.begin(9600);
  Serial.println("Initialization");
}

void loop() {
  long foo;
  pinMode(ECHO_PIN, INPUT);
  foo = pulseIn(ECHO_PIN, HIGH);
  Serial.println(foo);
}

Is it right?