In this recipe, we will learn how to create a loop that repeatedly reads the current temperature from the temperature sensor and prints it out. This will let us experiment with the sensor and see how it reacts to changes in temperature. The methods in this recipe can be used whenever you need to incorporate temperature readings into your project.
Reading temperature readings
Getting ready
You will need access to the REPL on Circuit Playground Express to run the code presented in this recipe.
How to do it...
Follow these steps to learn how to read temperature readings:
...