list your inputs and output for each function, along with what they actually are (like you have "pin1" but is that a pin to a sensor, LED...)