The data from the device is being sent to Google IoT Core using the state topic. If you recall, we have named that topic dht11. Now, we are going to create a subscription for this topic:
- From the menu on the left side, select Pub/Sub | Topics. Now, click on New subscription for the dht11 topic, as shown in the following screenshot:
- Create a new subscription by setting up the options selected in this screenshot:
- We are going to use the subscription named dht11-data to get the data from the state topic.