expected initializer before '}' token

wilfredmedlin:
Well those messages are un-ambiguous. Nowhere did you do eg:

int sensorValue;

Sorry i don't understand what you mean.