Maine was typically a Democratic state during the Second Party System, however, with Harrison narrowly winning the state, this would be the only time that a Whig presidential candidate would win Maine.
Results
1840 United States presidential election in Maine[1]