Add continuous sampling for motion sensors.
Fix import.