Designing the sample application
In this section, we are going to build a sample application using the IBM Watson IoT.
Solution
The solution we are going to build is going to be similar to the one from Chapter 3, Getting Started with IoT Platforms. We are going to connect a DHT11 sensor to Raspberry Pi 3 and then transmit the data over to the IBM Watson IoT platform using MQTTS. Then we will take that data and build a visualization.
In the next section, we are going to look at the overall architecture of the solution.
Architecture
The following diagram explains the architecture of the solution:

As we can see from the previous diagram, we are using a Raspberry Pi running MQTT client software over TLS with token-based authentication, connecting to the IBM IoT platform. The Raspberry Pi is connected to the DHT11 temperature and humidity sensor.
Using the MQTTS connection between the IoT platform and the Raspberry Pi 3, we will publish the temperature and humidity data on a custom topic of our choice...