A man trying to burglarize a home took a dip in a pool to avoid being arrested, but his need to come up for air proved costly.

Joshua Arpaia, 40, was caught on surveillance footage trying to break into a home in Apopka, according to WKMG.

>> Florida man with marijuana near groin blames underwear change

The homeowner, who was on vacation, spotted Arpaia breaking into his home on Tuesday after receiving an alert on his phone.

Thanks to clips of surveillance video sent to them by the homeowner’s wife, police were able to identify Arpaia, who was wearing a mask.

"The officers were using K-9 unit tracking in the back. They had seen them run initially, and they were passing through the neighbor's backyard. The neighbor had lights on. They saw him in the pool and so they just waited for him to come up for air," the homeowner told WKMG.

>> VIDEO: Officer-on-officer traffic stop in Florida leads to investigation

Arpaia was arrested, charged with attempted burglary and failure to appear, and taken to Orange County Jail.

Read more at WKMG.