Thanks to everyone
I checked according to what you said
INPUT_PULLUP
You were right it worked instead of external resistor Before that I checked with a resistor IN 5V, thanks for this advice
When I just put this code
if(digitalRead(in) == HIGH){
} else {
}
Works fine
if i put this code only
led 13 Remains off not work with statement else!
if(value=='1'){
//led need stay on
} else {
//led need stay off
}
The question is whether the problem is
In Arduino or Visual Basic
What do I need to do to make it work?