Back to Parent

With this complete, I began to test my code by setting the temperature threshold to be above room temperature, so that by pressing on the force sensor it was clear that the code was working. The LED was turning under the proper conditions but I realized that it was failing to turn off in the pressure sensor dropped below the minimum. I realized that this meant an else clause was needed for my if statement, so that if the snow or ice melted then the light would turn off. I added the code below: 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0