No encuentro el error/ I can't find the mistake

Con este codigo solo pretendo hacer funcionar un led (13) a partir de una entrada (12). Si la entrada detecta voltage, el led se enciende; si la entrada no detecta voltage, el led se apaga. Alguien puede ayudarme? Cuales son mis errores?
With this code I only want make functional a led (13) and a input (12). If the input is high, led turns on; but if input doesn't detects voltage, is low, led turns off. Can any one help me please? Which are my mistakes?

int ledPin = 13;
int input = 12;

void setup(){
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(input, INPUT);
}

void loop(){
if (digitalRead(input) == HIGH){
digitalWrite(ledPin, HIGH);
}
}

(deleted)

(deleted)

so to explain what the code above does - it's what you described as the intended behavior

if input doesn't detects voltage, is low, led turns off

but that you did not put into code