A method and apparatus for magnetically levitating and further steering of an intraluminal device, such as a swallowable microelectronic capsule, for monitoring bodily functions is provided. The method comprises diamagnetically-stabilized levitation, followed by dynamic modification of the external magnetic field producing the said levitation, so that the levitating intraluminal device can be steered in desired direction. The said intraluminal device contains appropriate sensors and reports in real time the forces and pressures exerted on it, as well as its position, so that the levitation and the steering can be dynamically adjusted using appropriate dynamic control of external magnetic devices such as solenoids.