Main Site Documentation

Beginner has a quick question


#1

Hello,
I am using the dht11. Are “temperature” and “humidity” strings?
Thanks,


namespace dht11_test
{
    public class Program
    {

        public static void Main()
        {
            DHT11 MyDHT11 = new DHT11((Cpu.Pin)FEZ_Pin.Digital.Di6, (Cpu.Pin)FEZ_Pin.Digital.Di7);

            while (true)
            {
                if (MyDHT11.ReadSensor())
                {
                    Debug.Print("Temperature = " + MyDHT11.Temperature.ToString() + "°C");
                    Debug.Print("Humidity    = " + MyDHT11.Humidity.ToString() + "%");
                }
                else Debug.Print("DHT11 Error : " + MyDHT11.LastError);

                Thread.Sleep(10000);
            }
        }

    }


#2

Yes


#3

Thank You,