In the last few decades, Human Activity Recognition (HAR) has been a centre of attraction in many research domains, and it is referred to as the potential of interpreting human body gestures through sensors and ascertaining the activity of a human being. The present work has proposed the voting classifier system for human activity recognition. For the voting classifier system, five machine learning classifiers are considered: Logistic Regression (LR), K-Nearest Neighbour (KNN), Random Forest (RF), Naive Bayes (NB), and Support Vector Machine (SVM). These machine learning classifiers are ensembled by analyzing the best performers among them. The ensemble voting classifiers are proposed under two variations, i.e., hard voting and soft voting. The various combinations of voting classifiers are compared and evaluated. For experiments, the benchmark dataset of the UCI-HAR dataset is considered, and all the data files are combined into a single file to avoid bias. The dimensionality of the dataset is reduced by using Principal Component Analysis (PCA) from 561 features to 200 components. The results reveal that Voting Classifier-II (a combination of SVM, KNN, and LR) using soft voting outperformed other machine learning classifiers.