I need to integrate these 3 Codes - Necesito integrar estos 3 Codigos

Good I'm snooping Arduino and wanted to know if I could faire un integrate these three codes that work independently.

Buenas estoy curioseando arduino y quería saber si me podían ayudar a integrar estos 3 códigos que funcionen de forma independiente.

#1er Codigo

const int LEDPanico= 13;
const int LEDMovimiento= 12;
const int LEDPorton= 11;
const int BPANICO= 2;
const int SMOVIMIENTO= 5;
const int BPORTON= 4;
 
void setup()
{
  pinMode(LEDPanico, OUTPUT);
  pinMode(LEDMovimiento, OUTPUT);
  pinMode(LEDPorton, OUTPUT);
  pinMode(BPANICO, INPUT);
  pinMode(SMOVIMIENTO, INPUT);
  pinMode(BPORTON, INPUT);
  Serial.begin(9600);
}
 
void loop()
{
  int value= digitalRead(SMOVIMIENTO);
 
  if (value == HIGH)
  {
    digitalWrite(LEDMovimiento, HIGH);
    delay(2000);
    Serial.println("Se ha Detectado Movimiento en el Sensor (PMI)");
    digitalWrite(LEDMovimiento, LOW);
    delay(2000);
  }
  else
  {
    digitalWrite(LEDMovimiento, LOW);
  }
}

#Integrar estos otros 2

void loop()
{
  int value= digitalRead(BPORTON);
 
  if (value == HIGH)
  {
    digitalWrite(LEDPorton, HIGH);
    delay(2000);
    Serial.println("Se ha Activado una "PUERTA" -Zona 1- (PMI)");
    digitalWrite(LEDPorton, LOW);
    delay(2000);
  }
  else
  {
    digitalWrite(LEDPorton, LOW);
  }
}
void loop()
{
  int value= digitalRead(BPANICO);
 
  if (value == HIGH)
  {
    digitalWrite(LEDPanico, HIGH);
    delay(2000);
    Serial.println("Se ha Activado una "EMERGENCIA" -Boton de Panico- (PMI)");
    digitalWrite(LEDPanico, LOW);
    delay(2000);
  }
  else
  {
    digitalWrite(LEDPanico, LOW);
  }
}

You have only given partial code for #2 and #3 but:

  1. The programs appear to be quite simple so you should have no big problems.
  2. You will have to eliminate the delay() statements because these will prevent the button presses being read. See the standard example "blink without delay" to see how to use millis() instead of delay().
  3. You are using the same variable name "value" in all 3 programs. You will have to change that to avoid interference.

thank you very much the truth is that my knowledge is scarce would be helpful for me to understand a little more as I must fix code

If you know how to:

  1. Drive a car
  2. Find your way to the closest grocery store
  3. Select the freshest vegetables for use in a salad

how does that help when the requirement is to change the toilet in the restroom?

Having three sketches is like being able to do three things. Without some set of requirements for the total program, the three sketches that you have are useless.

So, what, EXACTLY, ARE your requirements?

Buenas estoy curioseando arduino y quería saber si me podían ayudar a integrar estos 3 códigos que funcionen de forma independiente.

Make up your mind what language you are asking the question in.