Fix debounce period in threshold examples