Sexual offender caught after traffic stop