dc motor controlling by ECG signal value

hey all......
i m working on physiological signals detection by arduino mega 2560 r3.
when a ecg sensor is used with arduino it gives varying values on serial monitor.
i want to control a low voltage dc motor by the serial values.
ie the motor would start between a specified range of values and stops for remains.
what will be the codes ?

Amit -

If you want someone to write the code for you, you probably aught to go somewhere where you can hire a programmer.
If you want some advice then you probably should give some details about what your serial messages look like. This forum is a bunch of UNPAID folks trying to learn, and in some cases help others solve problems they encounter. That does not men that we wish to write your code for you. Show us what you got and what problem you are having and you would probably get a lot more help.