# Guide and how to send MQTT from my esp32 DHT22 to Node-Red into Google cloud platform Bullseye+Node-Red

**URL:** <https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442>\
**Category:** General\
**Tags:** mqtt\
**Created:** [4 June 2022 09:16 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442 "2022-06-04T09:16:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lumanga/32/58334_2.png) [@lumanga](https://discourse.nodered.org/u/lumanga)\
**Post date:** [4 June 2022 09:16 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442/1 "2022-06-04T09:16:41Z")

</div>

Dear All,I have a well working project, with my raspberry pi 3 with linux bullseye, and mosquitto + node-red.  
With some NodeMCU with DHT22 and Tasmota firmware, I'm able to send DHT22 data via MQTT from the esp32 to Node-red GUI/dash board to show value in gauge and historical data graph.

I have also a Google Cloud Platform with Virtual machine with Bullseye and node-red installed and working, **but I'm not able to find a guide to HOW send my DHT22 data via MQTT to GCP** Node-red (via MQTT and mosquitto installed in to GCP??)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [4 June 2022 09:32 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442/2 "2022-06-04T09:32:20Z")

</div>

Probably the easiest solution is for Tasmota to publish to a cloud based MQTT broker such as Hivemq.  
All of your Node-red instances can subscribe to the messages.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 June 2022 11:24 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442/3 "2022-06-04T11:24:02Z")

</div>

If you are already using Google Cloud, it has an MQTT bridge [Publishing over the MQTT bridge | Cloud IoT Core Documentation | Google Cloud](https://cloud.google.com/iot/docs/how-tos/mqtt-bridge)

The problem with a lot of the low-cost microprocessor platforms though is that they often do not support TLS. This is a pre-requisite for talking to cloud platforms. So the sensible thing to do would be for your IoT devices to talk to a local service and that service then to talk to Google Cloud over an encrypted connection. You could, of course, do that easily with Node-RED. Or, if you wanted to be clever, you could configure your local MQTT broker to have a direct bridge to the cloud and to replicate any topic structure you wanted across to it.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [4 June 2022 12:27 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442/4 "2022-06-04T12:27:45Z")

</div>

The current version of Tasmota does support TLS for ESP32 boards. [Tasmota TLS](https://tasmota.github.io/docs/TLS/)

I have no idea how you use it, but at least it's there.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 June 2022 14:10 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442/5 "2022-06-04T14:10:29Z")

</div>

Yes, and ESP32's can just about do TLS in software and some of the latest models have a security chip I think. I missed the reference to ESP32 in the title 😬

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 August 2022 14:10 UTC](https://discourse.nodered.org/t/guide-and-how-to-send-mqtt-from-my-esp32-dht22-to-node-red-into-google-cloud-platform-bullseye-node-red/63442/6 "2022-08-03T14:10:59Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
