A thermostat is really not a thermostat if it does not know the temperature in the room. Up until now, we have relied on a mock class to provide the temperature, but now it is time to measure the temperature in the room. The Raspberry Pi Sense HAT board has a multitude of sensors, including temperature, pressure, and humidity sensors.
To read the sensors, we will use the QSensor class and a QSensor plugin that reads the sensors on the Sense HAT board.
First, we will need to install the board on our target. Then, we will build the QSensor plugin for the Sense HAT board, along with the required drivers.