Arduino master to arduino slave code not working correctly

Can you show a schematic ?
I'm curious how this analog switch is working and if you have enough pullup resistors.