how do i add mutiple inputs and sound for my alarm sensors to the uno

i need multiple sounds too :roll_eyes: :astonished: :~

/*
  
 */
 

const int analogPin = A0;    // pin that the sensor is attached to
const int ledPin = A1;       // pin that the beeper is attached to
const int threshold = 400;   // an arbitrary threshold level that's in the range of the analog input

void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);
  // initialize serial communications:
  Serial.begin(9600);
}

void loop() {
  // read the value of the potentiometer:
  int analogValue = analogRead(analogPin);

  // if the analog value is high enough, turn on the LED:
  if (analogValue > threshold) {
    digitalWrite(ledPin, HIGH);
  } 
  else {
    digitalWrite(ledPin,LOW); 
  }

  // print the analog value:
  Serial.println(analogValue);
  delay(1);        // delay in between reads for stability
}

Hi, how many inputs do you need, and I wouldn't waste an analog port, A1 and use it as an output, us a digital port.
Put a sensor on each analog input, read it and switch or donot switch output.
Simply repeat what you have but using A0,A1,A2,A3 etc as inputs and assign as many outputs as you like to the result.

Tom... :slight_smile: