Fall Detection Using a Smartphone