Social media has played a crucial role in shaping the worldview during election campaigns. It has been used as a medium for political campaigns and a tool for organizing protests; some of which have been peaceful, while others have led to riots. Previous research indicates that understanding user behaviour, particularly in terms of sentiments expressed during elections, can indicate the election outcome. Recently, there has been tremendous progress in language modelling with deep learning via long short-term memory (LSTM) models and variants known as Bidirectional Encoder Representations from Transformers (BERT). Motivated by these innovations, we develop a framework to model the US general elections. We investigate if sentiment analysis can provide a means to predict election outcomes. We use the LSTM and BERT language models for Twitter sentiment analysis leading to the US 2020 presidential elections. Our results show that sentiment analysis can form a general basis for modelling election outcomes where the BERT model indicates Biden winning the elections.