Gor.Devices.Humidity_Air_HIH4000.Read C# (CSharp) Méthode

Read() public méthode

Read and convert the value from the ADC
public Read ( ) : string
Résultat string
        public override string Read()
        {
            // not useful
            double val;

            if (Adc == null)
                return "";
            else
            {
                if (calibration == null && !calibration.Ready) //If the sensor isn't calibrated
                    val = ReadInt() * voltage / 4096;
                else //If the sensor is calibrated
                    val = calibration.Calculate(ReadInt());

                return val.ToString();
            }
        }