int ir = A0;
int bgr = 13;
int rled = 12;
int alarm(float);

void setup() {
  // put your setup code here, to run once:
   pinMode(ir, INPUT);
  pinMode(bgr, OUTPUT);
  pinMode(rled, OUTPUT);
  Serial.begin(9600);

}
void loop() {
  // put your main code here, to run repeatedly:
  float irdata = analogRead(ir);
  Serial.print("object staus");
  Serial.print(irdata);
  alarm(irdata);
  delay(600);
  
}
void alarm(float)
{
  if(x>=250)
}
tone(bgr,700);
digitalWrite(rled,HIGH);
delay(200);
noTone(bgr)
digitalwrite(rled,LOW)
}
}