Hello
Post the datasheet of the sensor.
I think the sketch needs a state-change-detection function for the counter. Take a view into the examples of the IDE for some ideas.
Have a nice day and enjpy coding in C++.
Hello
Post the datasheet of the sensor.
I think the sketch needs a state-change-detection function for the counter. Take a view into the examples of the IDE for some ideas.
Have a nice day and enjpy coding in C++.