Listens for input sensor data then stores it to a csv file.