How can I add my "flow" variable consecutively, and also print it on the side.
To have similar to this result.
7.0 L/m 7
6.0L/m 13
10L/m 23
5.0 L/m 28
plis help :c
what is "v"? what is "caudal"?
use for code a code tag,

int x=0;
float caudal;
void setup()
{
pinMode(A2, INPUT);
Serial.begin(9600);
}
void loop()
{
x=analogRead(A2);
caudal=x/1023.0*10.0;
Serial.print(caudal, 3);
Serial.println(" L/m\t");
delay(1000);
}
this is my code, I was trying to create a variable to add but I can't.
unsigned int x = 0;
float caudal;
void setup() {
pinMode(A2, INPUT);
Serial.begin(9600);
}
void loop() {
static float secondFloat = 0.0;
x = analogRead(A2);
caudal = x / 1023.0 * 10.0;
secondFloat += caudal;
Serial.print(caudal, 3);
Serial.print(" L/m\t");
Serial.println(secondFloat, 3);
delay(1000);
}
Thank you very much friend.