Function: sendIt - avoid incorrect values

this is a bit confusing but i guess you mean if the value for address 40013 is < 0, set it to 0. If yes, then something like:

function sendIt(topic, address, roundTo) {
    let value = msg.payload[address]
    if (topic === 'WWo' && value < 0) {
        value = 0
    }
    const m = {
        topic: topic,
        payload: parseFloat(value.toFixed(roundTo))
    }
    node.send(m);
}