     else
       Serial.print("0 ");
   }
-  
-  //print newline character
   Serial.print("\n"); 
   
   //Wait 30ms

  ir_receiver_readings[5] = digitalRead(7);
  ir_receiver_readings[6] = digitalRead(8);
  
  //loop through the IR readings
  for(int i=0;i<7;i++){
    //print 1 to serial if beacon is detected
    if (ir_receiver_readings[i] == 0)

}
//loop repeats continuously
void loop(){

  boolean ir_receiver_readings[7];
  
  // Read each sensor
  ir_receiver_readings[0] = digitalRead(2);
  ir_receiver_readings[1] = digitalRead(3);
  ir_receiver_readings[2] = digitalRead(4);
