#include int childAdd = 1;//this is just a number for address void setup() { // put your setup code here, to run once: Wire.begin(); SerialUSB.begin(115200); } void loop() { // put your main code here, to run repeatedly: Wire.requestFrom(childAdd, 1);//Request(address, byte) while (Wire.available()){ int childValue = Wire.read(); SerialUSB.println(childValue); if (childValue == 1){ SerialUSB.println("HIGH"); } else { SerialUSB.println("LOW"); } } Wire.beginTransmission(childAdd); Wire.write(digitalRead(0)); Wire.endTransmission(); }