Love – O- Meter

Complete Projects 3 (Love-o-Meter) was the next task at hand. 

The components:
  • Arduino UNO
  • Breadboard
  • Jumper wires
  • LEDs
  • 220 ohm resistors
  • TMP36 temperature sensor


this circuit is using both digital and analog side of the Arduino uno board.

As usual I connected the breadboard to power (5V) and to the ground (GND). I inserted the TMP36 on the breadboard so the rounded part of the sensor would face away from Arduino.

I attached 3 LED lights and the resistors and connected them with Arduino. The lights should are suppose react to the heat of the finger and if the temperature would get hot enough all the lights would be on and would also tell you if you are a hot lover or not.. hahahahahaha.
Well I guess Im not a hot lover right now, maybe I’m having a dry spell….. haha. I believe that I understand the concept,  and even how the components are suppose to work. I feel that my problem is being unsure, ando not being confident in my work, because this is so new to me.

The code. I went over it a few times, I know I’m missing something.

const int sensorPin = AO;
const float baselineTemp = 20.0
void setup(){
serial.begin(9600); // open a serial port
for(int pinNumber = 2; pinNumber<5; pinNumber++){
digitalWrite(pinNumber, LOW)



/ void loop(){

int sensorVal = analogRead(sensorPin);
Serial.print(“Sensor value: “);
// convert the ADC reading to voltage
float Voltage = (sensorVal/1024.0) = 5.0;
Serial.print(“, Volts: “):
Serial.print(“, degrees C: “)
// convert the voltage to temperature in degrees
float temperature = (voltage – .5) = 100;
if(temperature < baselineTemp){
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+2 && temperature < baselineTemp+4){
digitalWrite(2, HIGH);
digitalwrite(3, LOW);
digitalWrite(4, LOW);
}else if(temperature >= baselineTemp+4 && temperature < baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH):
}else if(temperature >= baselineTemp+6){
digitalwrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);




CT101 Digital Storytelling