Arduino(Nano) to Water flow Sensor reading

I connected my water flow sensor to arduino nano. At first i got readings but now i'm not getting it. Reason?

My Connectioin is

Supply module to Water flow sensor
5v --> Vcc
Gnd --> Gnd

Arduino to Water flow sensor
D2 --> Signal

And my code is

void setup(){
  Serial.begin(115200);
  }[b][/b]

void loop(){
 int vla=analogRead(2);
 Serial.println(vla);
 delay(1500);
  }

Is there something which i'm missing

KhanKAfroze:
D2 --> Signal

And my code is

int vla=analogRead(2);

So you connected the sensor to D2,
and you're reading pin A2.
Leo..

Also asked at arduino nano - Water flow sensor unable to get readings - Arduino Stack Exchange

If you're going to do that then at least you could be considerate enough to add links to the other places where you posted your question. It would have saved Wawa the trouble of giving the same answer I already gave you on Stack Overflow.