add motion sensor API