Sex offender caught living across from elementary school