https://tatikardia.blogspot.com/2021/06/arduino-capacitor-tutorial.html
Arduino Capacitor Tutorial