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:
//Reads and analog sensor and displays the value
int sensePin = 7;
//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
// print the button state to a serial terminal
//wait half a second, then print again.