Arduino test code for automation