Make sketch shorter, simply

Nataschabakker:
Okay, i try this but get a error:
'minButtonVal' was not declared in this scope

Are you sure the error wasn't: minButtonValue' was not declared in this scope?