Another way to say "a blanket is used for sleeping." is "To keep warm while sleeping, cover yourself with a blanket."