2 instead of 3 because calls to waitForResponse in the sensor API are all in a return statement.