I move to and fro.
People make me dance all the time only to allow them to pass by.
Like all, I mostly sleep at night.

Who am I?

A Door.