I want to measure some distance using ultrasonic sensor. Take reading every minute. This process will go on 24X7. I also want this data to be written in a csv file. The file will contain data of each hour. That is after each hour a csv file should be created. Can any one help me in this project?