How does the reset pin (RES) work?
The reset pin is internally controlled by the BASIC Stamp’s brownout detector. It is normally high (+ 5V), which allows the BASIC Stamp to run its program normally, and is pulled low when the power supply voltage drops below 4 volts, which safely puts the BASIC Stamp to sleep. This pin can be monitored to detect when a reset condition occurs, or, you can pull the line to ground to force a reset. After the reset pin is allowed to rise to +5 volts, the BASIC Stamp wakes up and starts executing its program from the first line of code. Do not drive this pin high, it should be left electrically disconnected (floating) when you want the BASIC Stamp to run normally.