Go Down

Topic: All LEDs are glowing Love-o-Meter (Read 5850 times) previous topic - next topic

red_scorpion

nothing more to say about it please help.

pert

Try this:

If you're using the Arduino IDE, click the Tools > Serial Monitor menu option. If you're using Arduino Web Editor click "Monitor" on the menu on the left side of the window.

You should now see the voltage and temperature reading from the temperature sensor. What does it say?

red_scorpion

it says
Sensor value: 158, Volts: 0.77, degrees C: 27.15

pert

The code is written so that all the LEDs will light up when the temperature reading is 26 C or higher:
Code: [Select]
const float baselineTemp = 20.0;
...
Code: [Select]
else if (temperature >= baselineTemp + 6) {
Is your room temperature around 27 C?

You are supposed to set the value of the baselineTemp variable to the room temperature. If your room temperature is different from 20 C, then you need to change that line and then upload the modified sketch to your Arduino board.


pert

You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per

Go Up