"Peter does not have to sleep."
Translation:पीटर को नहीं सोना।
करना is usually added to adjectives or nouns to make them into verbs. For example, बड़ा करना (to make bigger), प्यार करना (to love) etc.
Since सोना is already a verb, you don't add a करना to it.
Note: Another modern use of करना is that when inserting a borrowed English verb into Hindi, करना is added to make it conform to Hindi grammar rules. So, when speaking 'Hinglish', 'sleep करना' may be used instead of सोना. You may thus hear a sentence like पीटर को स्लीप नहीं करना।