Phidget 20A AC current sensor.
This must be connected to an ADC pin. It may be defined using:
Phidget_AC20A sensor = MAKE_Phidget_AC20A(ADC0);
Where F0 is changed to be the required ADC input pin.
The sensor should be initialised in appInitHardware using:-
The sensor can then be read using:-
and then the current in amps will be in sensor.current.amps