Hand sensor that recognizes hand movements