The invention discloses a method for preventing a child from smoking an
electronic cigarette accidentally, and the method comprises the steps: S0, waiting for unlocking, and going to step S1 if an unlocking
signal is transmitted; S1, enabling the
electronic cigarette to work normally; S2, carrying out timing; S3, judging whether a smoking
signal is received or not in a first preset time: going to step S4 if the smoking
signal is received, or enabling the
electronic cigarette to enter into a locked state, and going to step S0 if the smoking signal is not received; S4, enabling the electronic cigarette to carry out atomizing operation, and going to step S2 after the smoking signal at this time is transmitted. When the electronic cigarette is at the locked state, the electronic cigarette cannot make any response even if the child smokes the electronic cigarette accidentally or non-
inhaled air flowing triggers a smoking switch or a user starts the smoking switch accidentally. If the user wants to
smoke normally, the user has to start the unlocking switch and enables the electronic cigarette to be switched to a normal working state from the locked state, so the possibility that the electronic cigarette is smoked by the child accidentally or is triggered accidentally is greatly reduced. Moreover, the electronic cigarette automatically enters into the locked state when a user does not use the electronic cigarette for a long time, so the electronic cigarette is automatic and convenient, and saves energy.