Global variable not sticking

noingwhat:
...sensorOrPen...

Only appears in colorSensor.cpp, correct?