   IR,
   VOLTS,
   FLOOR, 
-  E3,
+  COMPASS,
   E4,
   E5,
   E6,

  holdingRegs[TOTAL_ERRORS] = modbus_update(holdingRegs);
  IR_update();
  Floor_update();
  delay(50);
}


  }    
  prevfloor=holdingRegs[FLOOR];
}

void Compass_update(){
  holdingRegs[COMPASS]=Robot.compassRead();
}
