1. The temperature readings are way off. I used the same equations that the book provided: (voltage = (sensorVal/1024.0) * 5.0) and (temperature = (voltage - .5) * 100).But my Serial.print is outputting values around 100 degrees C.

2. I wanted to test the blinking lights, so I ignored the abnormal temperature reading. I changed my baseline temperature to 90 degrees. However, even as I warm the sensor temperature to 110 degrees C, the lights still doesn't come on.

The logic all seems right to me, but for some reason it just doesn't work. Can you help me?

And just out of curiosity, what is the logic behind these two equations?