I have a water counter which switches reed on each 10 liters of water. I would like to count these values with Arduino.
I wrote a program which counts changes from analog input and connected counter between
+5V and analog input. It counts well but I am doubt I connected correctly. Because when reed is opened, then analog input is connected to nothing, while it should be connected to
How to implement correct conversion from reed to analog or digital input?