Kb adafruit tutorial

It may be helpful to note what exactly "ready" means. For example, with a PIR sensor, you're simply creating the sensor object and setting up which pins it uses. For more complicated modules, you want to make sure you can communicate with it (Ambient requests the firmware version and once it can be read correctly, it knows it's ready).