update arduino code for testing