Planar Hall effect magnetic sensors for detection of biological agents using surface treated magnetic beads are integrated with a fluid injection system. The response of the sensors is used to evaluate bead capture rates for different bead concentrations c and fluid flow rates Q, and to monitor subsequent removal of the beads. It is found that the capture rate scales directly with c and that it depends linearly on Q. At low Q the capture rate is only partially due to gravitational sedimentation of beads. At higher Q an additional term proportional to Q becomes important, which is attributed to capture of beads by the magnetic fields near the sensor. It is shown that beads can be washed off the sensor surface.