This week I made a simple temperature “reader” with 4 LEDs. It is designed to tell comparison to the average temperature in the space so that the user can easily tell whether it is “cold” or “hot”. Since temperature changes very slowly, so I set the range of the temperature to be 2 degrees and use a cup of hot water to help testing the device. For each LED, there is a certain range of the temperature, basically-
Blue means the temperature is lower than average;
Red*1 means the temperature is a little bit higher than average;
Red*2 means the temperature is much higher than average;
Red*3 means the temperature is way too high.
Code can be found here.