Loading topic
setup() and loop(), use the Serial Monitor, place parts on a breadboard, and work with float and int values. It does not cover wiring or library installation. Those come in the next chapters. Here you learn what the two sensor7 min readpinMode and digitalRead. The DHT library comes in a later chapter. Here the goal is a circuit you can tr6 min readuint8_t, bit shifts and float in C++. The Adafruit library does the protocol work for you. Knowing the protocol stil6 min readsetup() and loop(), upload it, and use the Serial Monitor. It also assumes the sensor is already wired: power, ground, a data pin, and a pull-up resistor on the data line. The chapt5 min readsetup() and loop(), upload it, and open the Serial Monitor. It also assumes you have wired a DHT11 or DHT22 to the Arduino with a pull-up resistor on the data line, and installed the Adafruit DHT sensor library with its Adafruit Unified Sens6 min readreadTemperature() and readHumidity(). It also assumes you know setup(), loop(), float, and isnan(). Here you will learn why the sensor limits how often you can read it, what happens6 min readisnan. It covers two things: how the library handles units, and how to keep unit handling from causing subtle bugs in your sketch.5 min readNaN. It covers how far you can trust those readings and how to correct a consistent error with a simple offset.7 min readNaN results. It also assumes you know setup() and loop(), and the float, unsigned long, and bool types. Here you replace delay() with millis() timing so the se6 min readdht.readTemperature() and dht.readHumidity(), check results with isnan(), and pace reads with millis(). It also assumes you can uplo7 min readNaN results, and respect its two-second sampling interval. You should also know how setup() and loop() work and how to use Serial. No earlier I2C experience is needed. The chapter explains the parts of I2C that matter for thi7 min read