Well, you are not really "fixing" the problem if the code keeps coming back.
You have pretty much already ruled out the alternator, battery and the sensor.
Since it is "circuit" code, then you need to test that circuit wiring for good continuity and for being able to carry a load.
You will need...