Serial Monitor statements

Why do you read the analog value two times with a delay(1) in between ?

Also, prevValue = currValue must be placed at the end of the function, otherwise you'll be comparing two variables containing the exact same data.

PS: why do you keep on posting badly indented code ? Is it so hard to press CTRL+T ?