Exactly, that's it! Good luck with your sensor, hope you can get good results with it.
Just one thing: you better read it using a digitalRead() rather than analogRead(). It's just cleaner code, and after all it's a digital signal.
Exactly, that's it! Good luck with your sensor, hope you can get good results with it.
Just one thing: you better read it using a digitalRead() rather than analogRead(). It's just cleaner code, and after all it's a digital signal.