arduino code modified