How to write code that calculate average distance from 4 hc-sr04 into esp32. The average output from 4 sensor into 1 output pin
int sensor1, sensor2, sensor3, sensor4;
int avg = (sensor1+sensor2+sensor3+sensor4)/4;
Like that?
what is "average output to one pin" ?
For triangulation (quadrangulation?), be sure to subtract or add the distance from each sensor to the center of mass.