Writing Sensor Data to CSV Files

I am trying to take thermocouple data from I’m reading from a wireless sensor via Node Red and I want to write that data to a CSV file. I would also like to close the CSV file and open a new one periodically (every 1 or 24 hours). I am new to Node Red (and a hardware guy), so I appreciate any examples someone can share with me. Thanks!

I would recommend taking a look at this documentation from Node-Red:

This shows a basic flow for generating CSV data. I would get this working with a simple inject node before trying to even hook up our sensors just so you can learn how to do it. I always try to simplify setups as much as possible when learning something new like this.