An optical sensor for detecting motion or movement in an area of interest and a method of operation is provided. In addition, the embodiments of the present disclosure further provide a terminal. Upon generation of the touch signal, a touched character is recognized by analyzing the touch signal. The light guide comprises an upper part having a shape of a cone, and a center axis of the upper part is in the first direction.