Roger Alvarado was sentenced yesterday.

A man who broke into Taylor Swift’s New York townhouse and took a nap has been sentenced to six months in jail.

Roger Alvarado, 22, was sentenced yesterday after pleading guilty to criminal contempt and attempted burglary.

Back in April, police found Alvarado sleeping in Swift’s home, which is located in Manhattan’s Tribeca neighbourhood.

Police say he also used her shower during the break-in, although Swift was not home at the time. Alvarado reportedly plans to return to his native Florida after the jail stint, where he will he serve five years’ probation and a mental health program.

He was also arrested at the same address last February, after breaking the front door with a shovel.

Alvarado’s imprisonment comes after a stalker was arrested outside her home in 2018 and another sentenced to 10 years probation. A third, who reportedly entered her apartment building in New York was deemed psychologically unfit to stand trial.

As a security precaution, Swift’s team are believed to have installed facial recognition cameras at her show at the Rose Bowl in Los Angeles on May 18, 2018. The camera was reportedly hidden inside a display kiosk and those who stopped to look at the display had their picture taken.

Those images were then sent to a “command post” in Nashville, where they were cross-referenced with other photos of the star’s known stalkers.