void requestEvent() Wire.write("Hello Master");
#define SENSOR_ADDR 0x60 // MPL3115A2 I2C address
Let's use a BMP180 pressure sensor as an example. The BMP180 uses the I2C protocol to communicate with the Arduino.
Wire.requestFrom(8, 13); // Request 13 bytes from slave while(Wire.available()) Serial.print((char)Wire.read());