Having trouble with an if statement

hm... replaced it like you said for all the pots, still same thing Serial.write isnt triggered... :confused:

Also i got this from the reference site

Warning
Because of the way the abs() function is implemented, avoid using other functions inside the brackets, it may lead to incorrect results.
abs(a++);   // avoid this - yields incorrect results

a++;          // use this instead -
abs(a);       // keep other math outside the function

How do i make it like this?