Hi.
Got it to work by putting like this:
msg.topic =(“insert into sensors (sensor_ID, sensor_Name) values (1 ,” + “’” + msg.payload + “’” + “)”);
I’ll continue the Project and hopefully finish it so i can help all new people like me getting into this amazing tool.
Have a nice week.