[SOLVED] Ultrasonic sensor HC-SR04 arduino

Thanks for your report … sorry but I’m learning … I think I’ve solved send the code …
the code works perfectly, but I have a doubt, the part to blynk BLYNK_READ (V8) is correct? positioned exactly on the code?

//#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>

char auth[] = "xxxxxxxxx";

SimpleTimer timer;

#define echoPin 8 // Echo Pin
#define trigPin 9 // Trigger Pin

long duration, distance; // Duration used to calculate distance

void RepeatTask()
  /* The following trigPin/echoPin cycle is used to determine the
 distance of the nearest object by bouncing soundwaves off of it. */ 
 digitalWrite(trigPin, LOW); 

 digitalWrite(trigPin, HIGH);
 digitalWrite(trigPin, LOW);
 duration = pulseIn(echoPin, HIGH);
 //Calculate the distance (in cm) based on the speed of sound.
 distance = duration/58.2;


void setup() {
 pinMode(trigPin, OUTPUT);
 pinMode(echoPin, INPUT);
 timer.setInterval(1000, RepeatTask);

Blynk.virtualWrite(8,distance);// virtualpin 8 distance

void loop() {
  Blynk.run(); // Initiates Blynk
  timer.run(); // Initiates SimpleTimer