moved old arduino code