Hardware needed: -Arduino (any version will do) -2x resistors 470k and up, values not critical (just modify the thresholds in the code, even if the values dont match) -Some wire or metal, or check out what I used:
See video at https://youtu.be/j8qkt2ktEqc
Hardware setup is in comments at the top of the code file. I'll see questions you toss in the comments. Feel free to make this code better. Have fun!