+These sensors typically need a bit of time to start up before they can accept commands. The SHT21, for instance, requires up to 15ms after it's been powered up. In many programs, the delay that the Arduino framework introduces between your `setup()` and `loop()` functions is sufficient, but if you intend to request your first reading in `setup()` immediately after calling `begin()`, the request may fail. If `requestTemperature()` or `requestHumidity()` returns false and the error code returned from `getError()` is `0x81` (`SHT2x_ERR_WRITECMD`), this may be a sign that the sensor isn't ready.
0 commit comments