how to add debounce code to pushingbox code

hi another newbie facing the same false triggers problem for pushing box code. please can you post the full modified code which solved your problem.

Thanks in advance