How do you tell if a snake is sleeping?

Thank you!