This makes sense?

This makes sense?

Not a bit.

       Lec_Ultra = analogRead(Ultrasonido);
       delay(50);
       map(Lec_Ultra,0,1023,0,255);

map() returns a value which you throw away. It does NOT modify the input variable.

It is not the mark of the sharpest crayon in the box to use map() to divide by 4.