int ADC = analogRead(aInputPin) - 512; bool isPositiv = ADC >= 0; float milliAmpere = 48.78 * abs(ADC);