BANGOR, Maine — A Windham man was sentenced Thursday in U.S. District Court to serve one day in jail and ordered to pay a $3,000 fine for crossing from Canada into Maine illegally, according to the U.S. attorney’s office.

Bruce Mayberry, 55, pleaded guilty Nov. 19, 2015, to one count of failure to present himself at a border crossing, a federal misdemeanor, according to Assistant U.S. Attorney James Moore.

Mayberry was stopped Oct. 29, 2015, after his red Saturn sedan triggered sensors and was seen by a U.S. Border Patrol agent driving on a field road from New Brunswick, Canada, into Maine, according to a news release issued by the U.S. attorney’s office. When stopped by the agent, Mayberry admitted that he had been in a Canada a few days and had seen a dentist in the province.

An officer employed by the Canadian Border Services Agency reported that Mayberry had been refused entry into Canada in 2005 as result of his criminal history, according to the release. Mayberry’s criminal history was not immediately available, but his previous convictions are reportedly more than 20 years old.

Canada refuses entry to people convicted of both minor and serious crimes including theft, assault, manslaughter, dangerous driving, drunken driving and drug crimes, as well as more serious offenses such as terrorism, according to information posted on the Canadian government’s website that contains information about immigration and citizenship.

In addition to the jail time, which he already has served, Mayberry also paid a civil penalty and a $500 fee associated with impoundment of his sedan.

In imposing sentence, U.S. Magistrate Judge John Nivison emphasized the importance of border security and the need to deter others from unlawfully crossing the U.S. border, the release said.

Mayberry faced up to a year in prison and a fine of up to $100,000.