Man who worked as a nanny sentenced to 30 years for child molesting