Exemplo n.º 1
0
        protected async Task ReadConditions()
        {
            var conditions = await si7021.Read();

            Console.WriteLine("Initial Readings:");
            ShowConditions();
        }
Exemplo n.º 2
0
        protected async Task ReadConditions()
        {
            var conditions = await si7021.Read();

            Console.WriteLine("Initial Readings:");
            Console.WriteLine($"  Temperature: {conditions.Temperature}ºC");
            Console.WriteLine($"  Pressure: {conditions.Pressure}hPa");
            Console.WriteLine($"  Relative Humidity: {conditions.Humidity}%");
        }