School-age children between 6-12 years need 9-12 hours of sleep daily while teens need 8-10 hours for optimal immune function. Lack of sleep is linked with an increased risk of infections. Maintaining proper sleep habits is key for immunity.