Version 1.4
...optimized logic for debouncing (extra if was there)
...changed pin_val to interrupted_sw_val_2 (forgot to do that when
changed variable names)