You only need to do this once, move it into the setup( ) function.
Serial.begin(9600); // observar a variavel Unid
How are your switches wired ?
In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.
Use the </> icon from the ‘reply menu’ to attach the copied sketch.