Program is ok, I have one mistake in hardware. I put one resistor 10K between input pin and GND and now it is ok.

Thank you for your help.

Regards