by the looks of it you need to close the brackets of the sprintf() statement shown below if you had copied the code from Ariser:
sprintf(gl_senstr1, "%d", digitalRead(6);
sprintf(gl_senstr2, "%d", digitalRead(7);
replace it with:
sprintf(gl_senstr1, "%d", digitalRead(6));
sprintf(gl_senstr2, "%d", digitalRead(7));
That is probably the error you are seeing ;because of sprintf() not seeing a close to its statement ;)