question regarding input

Your input is floating; use an pull-down resistor.