Hello, I'm new to Node-RED. Having some trouble with sending data to CSV. I need two separate columns with different names and different data below for example but I'm getting everything in one line. Please tell me how to solve this.
Thank you
[{"id":"2f90ce8fb2a257e8","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"0ecfc4ef4d17d3e1","type":"inject","z":"2f90ce8fb2a257e8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":120,"wires":[["d4254ce887f93f08"]]},{"id":"d4254ce887f93f08","type":"function","z":"2f90ce8fb2a257e8","name":"function 1","func":"msg.payload = {\n \"Time\" : Math.random()*10,\n \"Sensor\" : Math.random()*50\n}\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":300,"y":120,"wires":[["836b5d25ef304aa5","b9fdab2c3579f04f"]]},{"id":"b9fdab2c3579f04f","type":"debug","z":"2f90ce8fb2a257e8","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":60,"wires":[]},{"id":"836b5d25ef304aa5","type":"csv","z":"2f90ce8fb2a257e8","name":"","sep":",","hdrin":true,"hdrout":"once","multi":"one","ret":"\\r\\n","temp":"Time,Sensor","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":450,"y":140,"wires":[["e8717b2e16748674","b9fdab2c3579f04f"]]},{"id":"e8717b2e16748674","type":"file","z":"2f90ce8fb2a257e8","name":"","filename":"C:\\Users\\Dell\\Documents\\Test.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"none","x":720,"y":180,"wires":[[]]}]