Water flow sensor unable to get readings
Sensor to Arduino(Nano)
  Sig --> D2


Your connections are wrong.

int vla=analogRead(2);


is reading from analog channel 2, which is pin A2 on your Nano, not D2

D2 is not an analog pin and thus you can't use it with analogRead().