Arduino + Psychopy GSR Experiment : Data save code error in excel file

I have used Arduino (analog) and psychopy for a Galvanic Skin Response experiment.
I have adapted Recording information from an Arduino via serial port — PsychoPy v2023.2.3 coding for the above mentioned experiment.
Now I am not getting GSR responses (values) in the data file. Getting only Time.