A method for treatment of obesity, especially morbid obesity,
gastroparesis and other syndromes related to motor disorders of the
stomach. The method of this invention utilizes a sensor to detect food
entering the patient's stomach, thereby the sensor communicates with and
activates at least one electrical stimulation device attached to either
the stomach or the small intestine.