Use Serial.print to tell you what sensorValue is after you read it. Also, post your code again if you changed it.