output sensor result to csv file