A method, comprising: obtaining a motion reading from one or more motion sensing devices of a mobile device; recognizing a gesture, including determining that the motion reading indicates that the mobile device moves towards a target object in one or more specified fashions, characterized in that the method further comprises: at a time the mobile device enters a motion detection mode, turning on a proximity sensor of the mobile device and setting the proximity sensor to operate in a passive mode, wherein in the passive mode, the mobile device establishes a baseline of the proximity sensor, the baseline comprising a proximity reading indicating that the proximity sensor does not detect an object, the baseline usable by the mobile device to determine proximity with an object upon determining that proximity readings of the proximity sensor satisfy a specified offset from the baseline; after recognizing the gesture, performing actions comprising: setting the proximity sensor to operate to an active operating mode; determining that a difference between a reading of the proximity sensor obtained in the active operating mode and the baseline determined by the proximity sensor before the gesture was recognized satisfies a threshold value; and in response, confirming the gesture, including determining that the gesture is not a false positive; and then performing a task in response to the confirmed gesture, wherein time taken to establish the baseline is masked by time that the mobile device is in motion. obtaining a motion reading from one or more motion sensing devices of a mobile device; recognizing a gesture, including determining that the motion reading indicates that the mobile device moves towards a target object in one or more specified fashions, characterized in that the method further comprises: at a time the mobile device enters a motion detection mode, turning on a proximity sensor of the mobile device and setting the proximity sensor to operate in a passive mode, wherein in the passive mode, the mobile device establishes a baseline of the proximity sensor, the baseline comprising a proximity reading indicating that the proximity sensor does not detect an object, the baseline usable by the mobile device to determine proximity with an object upon determining that proximity readings of the proximity sensor satisfy a specified offset from the baseline; after recognizing the gesture, performing actions comprising: setting the proximity sensor to operate to an active operating mode; determining that a difference between a reading of the proximity sensor obtained in the active operating mode and the baseline determined by the proximity sensor before the gesture was recognized satisfies a threshold value; and in response, confirming the gesture, including determining that the gesture is not a false positive; and then performing a task in response to the confirmed gesture, wherein time taken to establish the baseline is masked by time that the mobile device is in motion. at a time the mobile device enters a motion detection mode, turning on a proximity sensor of the mobile device and setting the proximity sensor to operate in a passive mode, wherein in the passive mode, the mobile device establishes a baseline of the proximity sensor, the baseline comprising a proximity reading indicating that the proximity sensor does not detect an object, the baseline usable by the mobile device to determine proximity with an object upon determining that proximity readings of the proximity sensor satisfy a specified offset from the baseline; after recognizing the gesture, performing actions comprising: setting the proximity sensor to operate to an active operating mode; determining that a difference between a reading of the proximity sensor obtained in the active operating mode and the baseline determined by the proximity sensor before the gesture was recognized satisfies a threshold value; and in response, confirming the gesture, including determining that the gesture is not a false positive; and then setting the proximity sensor to operate to an active operating mode; determining that a difference between a reading of the proximity sensor obtained in the active operating mode and the baseline determined by the proximity sensor before the gesture was recognized satisfies a threshold value; and in response, confirming the gesture, including determining that the gesture is not a false positive; performing a task in response to the confirmed gesture, wherein time taken to establish the baseline is masked by time that the mobile device is in motion.