I am writing a code for Arduino. What it should do is:
It has to Monitor 6 analog inputs and if there is any activity on any of them, send (number of active pin + value on its pin) via serial connection.
On the other side of the serial connection, Other program will make decision on this given information WalgreensListens Survey.
How best to do it?
First set your analog ports to inputs(ref: Read Analog Voltage) and then enable the serial port (ref: Serial). Once these are enabled, read the values through the analog ports and you will be able to send the same via the serial port available on your arduino.