I just started trying to program my Arduino. I'm sure my error is very basic but I just can't figure it out!
int sensePin = 2; // the pin the FSR is attached to
void setup()
{
Serial.begin(9600);
}
void loop()
{
int value = analogRead(sensePin) / 4; //the voltage on the pin divded by 4 (to scale from 10 bits (0-1024) to 8 (0-255)
Serial.println(value); //print the value to the debug window
}
if (value > 100)
{
Serial.printIn("It is below 100")
}
else
{
Serial.printIn("It is above 100")
}
Well, when I try that I get:
test1:23: error: expected unqualified-id before 'if'
test1:27: error: expected unqualified-id before 'else'
For the life of me I can't figure out what I'm doing wrong. I searched the forums for a long time trying to implement what I found just can't figure it out - can someone please take pity on me and help?
thanks!