available() returns the number of bytes available for retrieval with read(). This function should be called on a controller device after a call to requestFrom(), or on a peripheral inside the onReceive() handler.
This function inherits from the Stream utility class. See the Wire main page for more information.
Wire.available()
None.
The number of bytes available for reading, or 0 if none are available. Data type: int.