Add code to support a currents ensor on the arduino.