Disclosed is a method for access control, that may include detecting a tactile or a proximity action by a body on a sensor of an electronic device, wherein the electronic device operates in first and second operating modes upon detection of the tactile and proximity actions, respectively. The…