We all must deal with temperature regarding electronics and the parts used to make them function, with that being said, being able to detect and quantify the change in temperature is something that always needs to be considered. Initially, we sought to activate a fan with the same functions as we currently have but we ran into the problem of powering a 12-volt fan. With that being our biggest hurdle we pivoted over to a push button that would initiate the data reading.
The temperature sensor that we used was a KY-028 Digital Temperature Sensor Module, this sensor utilizes a thermistor that when the ambient temperature increases, the resistance of the thermistor decreases; this allows us to quantify the change in temperature accurately. The trimmer potentiometer attached to it will enable us to change the sensitivity of the thermistor, making our data more accurate.
Digital Temperature Sensor
With the temperature sensor set up, the next step was to find a way to activate the reading. For this, we decided to go with a push button due to its simplicity. The way we have it set up is that when the button is pushed, it sends a signal to the computer which publishes the data gathered by the sensor. If the sensor produces a reading above 60 degrees the light will turn on, otherwise it says off.
Below is the data that we gathered with the sensor as well as a video demonstrating it.
Temperature Sensor - ThingSpeak IoT