Keeping students engaged is important part of managing the students education. Lesson plans need to be written so that they can be extended or compressed as the students needs change.
Teaching each lesson will encounter areas that will require change in method and activies to keep them involved, one way will be to go from lecture to physicial activity, getting them out of there seat and moving will wake them up.They will relate to visual technical activety better than just lecture sitting.