A Hidalgo County Sheriff’s Office deputy found himself on the other side of the law after being arrested in an undercover sting operation.