Changed the application to record sensor data to file.