Render an entity reference in a twig template
first you should select show Rendered Entity in your content type field Manage Display section in admin/structure/types/manage/teacher/display (I supposed your content type is teacher based on your question), then in your node template  try to render the content field with something like 

{{ content.field_classrooms }}