I am recording temperature data to a txt file every minute but the
sketch cycles 60 times a second so saves 60 data lines each minute. I have tried below which still prints more than one line.
int s = second();
for (int i = 0; i < 1; i = i+1) {
if(s == 0)output.println(da + "/" + mo + "/" + yr +","+ hour +":"+ min +":"+ sec + ","+ temp121 + ","+ temp122+ ","+ temp123);