Hello guys, I'm doing a project to monitor temperature, humidity and air quality in chicken farms. One need is to save the data in a database to generate indicators. I am sending the data to an MQTT broker and need to save it in a database. I am not able to send the data in the format I receive it. This is my flow, in the first image is the data I get from MQTT (there are several devices, this is just an example of one), in the second photo it is what appears when it passes through the mysql node. I need your help to solve this problem. Thanks.
[{"id":"d15a8d98.892a7","type":"tab","label":"Teste MySQL","disabled":false,"info":""},{"id":"8e15704a.5251f","type":"function","z":"d15a8d98.892a7","name":"SQL query teste","func":"msg.topic = \"SELECT valores FROM dadosteste ORDER BY id DESC LIMIT 1\";\nreturn msg;","outputs":1,"noerr":0,"x":349.0174102783203,"y":165.00003814697266,"wires":[["4ee4064.61fcaf8"]]},{"id":"4ee4064.61fcaf8","type":"mysql","z":"d15a8d98.892a7","mydb":"e9f025e8.70ddf8","name":"teste","x":556.0173225402832,"y":165.00002765655518,"wires":[["12c4989a.f34b37"]]},{"id":"12c4989a.f34b37","type":"debug","z":"d15a8d98.892a7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":748.0172080993652,"y":166.00006866455078,"wires":[]},{"id":"628f2721.50b168","type":"mqtt in","z":"d15a8d98.892a7","name":"TCC","topic":"device3Av1","qos":"0","datatype":"json","broker":"c7266bc3.062ef8","x":135.01736450195312,"y":166.01040840148926,"wires":[["8e15704a.5251f","5519b318.8e355c"]]},{"id":"5519b318.8e355c","type":"debug","z":"d15a8d98.892a7","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":327.576416015625,"y":243.5972499847412,"wires":[]},{"id":"e9f025e8.70ddf8","type":"MySQLdatabase","z":"","host":"127.0.0.1","port":"3306","db":"teste_nodered","tz":""},{"id":"c7266bc3.062ef8","type":"mqtt-broker","z":"","name":"TCC ","broker":"m24.cloudmqtt.com","port":"14910","clientid":"","usetls":false,"compatmode":true,"keepalive":"1","cleansession":true,"birthTopic":"esp/test","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]