Simple sensor

This is a problem:

  if (analogRead(vstup1) > 50);

That semicolon should not be there