Added basic motion sensor functionality