New thread with polling of motionsensor and buttons in one.