Beginning lucid dreamers often have the problem of waking up right after becoming lucid. This obstacle may prevent some people from realizing the value of lucid dreaming. Fortunately there are ways to overcome this problem.
The first is to remain calm in the dream. Becoming lucid is exciting, but expressing the excitement can awaken you. It is possible to enjoy the thrill that accompanies the dawning of lucidity without allowing the activation to overwhelm you. Be like a poker player with an ideal hand. Relax and engage with the dream rather than withdrawing into your inner joy of accomplishment.
Then, if the dream shows signs of ending, such as a loss of detail, vividness, and apparent reality of the imagery, the technique of "spinning" can often restore the dream. You spin your dream body around like a child trying to get dizzy. LaBerge developed this technique after experimenting with the idea that relaxing completely might help prevent awakening from a dream. When in a lucid dream that was fading, he stopped and dropped backwards to the floor, and had a false awakening in bed! After a few trials he determined that the essential element was the sensation of motion, not relaxation. The best way to create a feeling of movement, especially in the dream scene has vanished, leaving nowhere to move to, is to create angular momentum (or the sensation of it), by spinning around your axis. You are not really doing it, but your brain is well familiar with the experience of spinning and duplicates the experience quite well. In the process the vestibular and kinesthetic senses are engaged. Presumably, this sensory engagement with the dream discourages the brain from changing state from dreaming to waking. Note that dream spinning does not usually lead to dizziness. Be aware that the expectation of possible awakening sometimes leads to a "false awakening" in which you dream of waking. The vividness of the spinning sensation may cause you to feel your spinning arm hit the bed. You think, "Oops, I'm awake in bed now." Think now--your physical body wasn't really spinning, it was your dream body--therefore, the arm is a dream arm hitting a dream bed! To avoid being deceived, recite, "The next scene will be a dream," until a scene appears. If you are in doubt about your status, perform a thorough reality test.
Research at the Lucidity Institute has proven the effectiveness of spinning: the odds in favor of continuing the lucid dream were about 22 to 1 after spinning, 13 to 1 after hand rubbing (another technique designed to prevent awakening), and 1 to 2 after "going with the flow" (a "control" task). That makes the relative odds favoring spinning over going with the flow 48 to 1, and for rubbing over going with the flow, 27 to 1.