Saving data to pc aquired by Arduino from two sensors

Good morning,

I'm quite new to Arduino and I have to store data from 2 sensors connected to analog inputs, afterwards I have to post-process data on pc so I need data as spreadsheet or just binary.

My problem is that I don't know how to differentiate the 2 sensors' outputs data because I need one different collection (so 2 different files on my computer) for each sensor.

I ask you if you can help me solving this problem.

Thank You
Luigi

The easiest way is probably to just send it over the serial port in CSV format:

Serial.print(sensorval1);
Serial.print(',');
Serial.println(sensorval2);

On the PC, just read the data into a file with a CSV extension.
Open it in Excel/Calc, and you're done.

If you really need them in two separate files, you can do that with a script on your computer, or just in your spreadsheet editor.

Pieter