@IronFelix I would not combine so many inputs and outputs in one sketch. But I think if there is enough memory for variables ; then it is possible to go for sensing (step by step) for a combination of sensors. Similarly for buttons, actuators, use a separate hardware.