Save data with atmega 328

Did you have a look at the examples that come with the SD or SDFat library? They will show you how to write to a file.

You can write the value of a sensor followed by a comma followed by the value of another sensor followed by a comma and so on; after the last value, you can use an empty println for a new line (end-of-record).

The timing can be achieved with millis().