Arduino Check If Output Pin Is High