Chapter 5: Humidity and Temperature Measurement
This chapter describes how to practically measure humidity and temperature in an environment, as well as how to connect specialized sensors to a microcontroller board. You will find out how to use the commonly used sensors DHT11 and LM35. In this chapter, you will gain valuable information regarding gaining data acquisition from a temperature and humidity sensor and a sensor module and how to display it to a user.
In this chapter, we are going to cover the following main topics:
- Introducing the DHT11 humidity and temperature sensor module
- Connecting the DHT11 and LM35 sensors to the microcontroller boards
- Coding to get data from the sensor module
- Showing the humidity and temperature data results on the serial port monitor
By the end of this chapter, you will have learned how to properly connect a DHT11 humidity and temperature sensor and an LM35 temperature sensor to the Curiosity Nano and Blue Pill microcontroller...