moved sleep in arduino code