Methods and apparatuses for sensing biological functions are disclosed. Sensors can be implanted in an organ, such as the brain, and a magnetic field gradient applied to the biological tissue. The field causes the sensors to have different resonant frequencies allowing their spatial localization. The sensors can harvest power from the external coils to be able to retransmit data.