The following are the steps we are going to follow to achieve the solution. First, we set up the IoT Thing and publish data to GCIC:
- Create a Google account.
- Create a new Google Cloud project.
- Enable billing and APIs.
- Create a new registry and a new device.
- Define topics and attach certificates.
- Set up Raspberry Pi 3 and the DHT11 sensor.
- Start reading the sensor data and publish it to the state topic.
- Create service account credentials. Set up a local machine.
- Create a new Pub/Sub subscription. Create a Pub/Sub client and subscribe to the data.