Connecting a temperature sensor to the Blue Pill board
In this section, we are going to learn the hardware components needed to build a temperature-logging sensor using the STM32 Blue Pill and a temperature module.
To build an electronic device that measures temperature, you will need a sensor that monitors the environment and records temperature data. A microcontroller card is also necessary to be able to read the data from the sensor and to be able to display the information to users. We will begin by having a look at the temperature sensor module.
Introducing the DS18B20 temperature sensor module
Let's get to know the main hardware component's details to build the temperature log: the DS18B20 sensor. It is a digital temperature sensor that can measure air temperature, liquids (using a waterproof version), and soil.
Important note
The DS18B20 temperature sensor has a unique 64-bit serial code, allowing multiple sensors to be connected using just one digital...