Go Down

Topic: Arduino(Nano) to Water flow Sensor reading (Read 870 times) previous topic - next topic


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

Code: [Select]

void setup(){

void loop(){
 int vla=analogRead(2);

Is there something which i'm missing


D2 --> Signal

And my code is

int vla=analogRead(2);

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


Also asked at https://arduino.stackexchange.com/q/44976

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.

Go Up