arduino sketch for head movement control