public double Measure() { var millivolts = adc.GetMillivolts(channel, gain); // convert to a percentage between zero and volts (eg 5000 millivolts) return((volts.Millivolts - millivolts) / volts.Millivolts * 100d); }
public Temperature Measure() { var temp = GetTemperature(adc.GetMillivolts(channel, gain)); return(temp); }