#include int val=0; void setup() { Wire.begin(); // join i2c bus (address optional for master) } void loop() { Wire.beginTransmission(8); // transmit to device #8 val = analogRead(A0); Wire.write(val); // sends one byte Wire.endTransmission(); // stop transmitting // delay(500); }