Well, in order to avoid sleeping while studying, just follow this steps below:
1.Switch the Lights On. Don't even think about studying in just the lamplight at night.
2.Sit in Front of a Table.
3.No Heavy Meals.
4.Move Around in Your Room
5.Read out Aloud While Studying