Hello, I am so frustrated on trying to make this thing work. I'm Newbie! Please correct me.
there are 3 color of wire, red wire to 5v, yellow to A1 (analog), black to ground.
I got this as the result:
100
6
45
108
123
37
0
0
15
79
128
104
8
0
//Reads and analog sensor and displays the value
int sensePin = 7;
void setup()
{
//Note: We don't need to specifiy sensePin as an
//input, since it defaults to that when we read it
//This is the default value, but we can set it anyways
analogReference(DEFAULT); //5V Reference on UNO
//Allows us to listen to serial communications from the arduino
Serial.begin(9600);
}
void loop()
{
// print the button state to a serial terminal
Serial.println(analogRead(A1));
delay(500);
//wait half a second, then print again.
}