added motion sensor