A system for locating an implanted device including magnetic coils within a subject is provided. The system includes a magnetic sensor array including a plurality of magnetic sensors, the magnetic sensor array configured to measure a magnetic field generated by the implanted device, and a position detection module communicatively coupled to the magnetic sensor array, the position detection module configured to receive the measured magnetic field from the magnetic sensor array, and calculate a position of the implanted device based on the measured magnetic field.