Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
The election took place in advance of the 1840 United States presidential election, with the Maine state elections attracting national attention for their potential to foretell the outcome of the national contest. A fierce partisan campaign ensued, in which the Whigs sought to capitalize on the grassroots enthusiasm for their national ticket, headed by the former major general and United States senator from Ohio, William Henry Harrison by donning log cabin badges and other emblems of Harrison's presidential campaign. On election day, early returns variously showed either Kent or Fairfield narrowly ahead, with neither candidate conceding defeat. Democrats alleged that 28 votes cast for Hannibal Hamlin, the Democratic candidate for the United States House of Representatives from Maine's 6th congressional district, had been intended for Fairfield which with the addition of other contested votes from unincorporated areas would give him a narrow majority. The legislature found that Kent had outpolled Fairfield by fewer than 70 votes, less than a majority of the total electorate, with 98 votes for other candidates. The election was referred to the Senate, where the Whig majority elected Kent.