fixed arduino to do gesture recognition after no more movement