The code for this project was relatively simple, and gives a good idea on how to use the if and else if codes. The one thing that had to be changed on this was the baseline temp. Since the lights go on based on the temperature the sensor is reading, and 20 degrees can sometimes be slightly less than room temperature, one of the lights might never turn off, so I set the baseline temp slightly higher to account for this.
|