Motion sensors for activity recognition in an ambient-intelligence scenario