optical flow sensor how does it work