I agree with what @ristomatti said...
I installed Mosquitto on Node-RED and it ran 'straight-out-of-the-box'.
In the above example my Wemos will publish to a topic called... node92/dht11/temperature
So all you need to do in Node-RED is use one of the core nodes MQTT-In with a subscribe topic of... node92/dht11/#
Hope this helps.
I can post some sample NR flows if you get stuck.